def bytify(n=0, size=3):
    """
    Returns bytearray of size bytes equivalent of integer n that is left zero padded
    to at least size bytes. Big endian
    """
    b = bytearray([])
    count = 0
    while n or (size < count):
        b.insert(0, n & 0xFF)
        count += 1
        n >>=  8
    return b
dataset/ETHPy150Open ioflo/ioflo/ioflo/aid/byting.py/bytify/swapped operands of `<`