import six


def byte_to_char(bin_input):
	"""
	Given byte as string or int, return character
	>>> byte_to_char("0010010")
	'2'
	>>> byte_to_char(100)
	'd'
	"""
	if isinstance(bin_input, six.string_types):
		return chr(int(bin_input, base=2))
	else: 
		return chr(bin_input)