def to_bits(_bytes: bytes) -> list:
    """Convert bytes to a bit list"""
    bits = []
    offset = 0
    for byte in _bytes:
        for i in range(8):
            bits.insert(0+offset,(byte >> i) & 1)
        offset += 8
    return bits