def bigint_to_int(mtime):
    if isinstance(mtime, bytes):
        return int.from_bytes(mtime, 'little', signed=True)
    return mtime
Convert bytearray to int
dataset/ETHPy150Open jborg/attic/attic/helpers.py/bigint_to_int