popen batch for mapping parallelisation