multiprocessing pool with timeout