Then, you probably want a more general interface than importing ProcessPoolExecutor... that's the reason I am suggesting to move this implementation detail away from the script.