def deal(bytes_in, count):
    """
    Split a bytearray into a list of smaller bytearrays by 'dealing' the bytes
    into `count` different piles.
    """
    return [bytes_in[i::count] for i in range(count)]