Python Byte Array To Binary Search