return path

def process_args(some_args):
    pool = Pool(16)
for result in pool.imap_unordered(target_fnc, some_args):
    with open(result) as f:
        for element in f:
            yield element
многопроцессорность с большими данными