fix syntax error in multiprocessing