parallelize job using multiprocessing