I am using pathos.multiprocessing in python2, but I think it is the same question with the standard multiprocessing. My code looks like the following:
results