Fix the multiprocessing tests for python 3