I have a multiprocessing setup, with a worker function and a parent function. Here is a simplified version:
from functools