Circumvate memory leak with IMP + multiprocessing