import struct import numpy as np def tobin(value): return '{:016b}'.format(struct.unpack('