def _bin_to_long(x):
 return int(binascii.hexlify(x), 16)

def _bin_to_long ( x ) : return int ( binascii . hexlify ( x ) , 16 )
convert a binary string into a long integer this is a clever optimization for fast xor vector math .