Given this example:
I want to distribute the calculation over a list (map)
from multiprocessing import Pool def fun(elem): lis = [] for i in rang