def byte_lengths(n_bytes, n_partitions):
    """Calculates evenly distributed byte reads for given file size.

    Args:
        n_bytes: int - total file size in bytes
        n_partitions: int - number of file partitions

    Returns:
        iterable of ints
    """

    chunk_size = n_bytes // n_partitions
    byte_reads = [chunk_size] * n_partitions
    for ix in range(n_bytes % n_partitions):
        byte_reads[ix] += 1
    return tuple(byte_reads)