Consumers is a simple, flexible way to parallelize processing in Python.
https://consumers.readthedocs.io
from consumers import Pool
def concatenate(letters):
return '-'.join(letters)
with Pool(concatenate, 2) as pool:
for letter in 'abcdef':
pool.put(letter)
print(pool.results)
('b-d-f', 'a-c-e')