def process_chunk(chunk, func, *args):
    """ Apply a function on each element of a iterable. """
    L = []
    for i, e in enumerate(chunk):
        L.append(func(e, *args))
        if i % 10 == 0:
            print("Processing chunk", i)
    return L