parallelization via python script