Please put the expression _pool = Pool(2) within the function script_runner as follows:
_pool = Pool(2)
script_runner
def script_runner(): _pool = Pool(2) _pool.apply_async(script_wrapper) _pool.close() _pool.join()
->
foo