def bin(number):
 tmp = [BIN_HEX_DICT[hstr] for hstr in hex(number)[2:]]
 return BIN_ZSTRIP.sub('0b', ''.join(tmp))

def bin ( number ) : tmp = [ BIN_HEX_DICT [ hstr ] for hstr in hex ( number ) [ 2 : ] ] return BIN_ZSTRIP . sub ( '0b' , '' . join ( tmp ) )
returns a dictionary with items in the given list grouped by the given key .