class bitstr(str):
	def __or__(self, other):
		return bin(int(self, 2) | int(other, 2))[2:]
		# need to slice because 'bin' prefixes the result string with "0b".

a = '010110'
b = bitstr('100000')

print(bitstr(a) | b)
