I am using a Python multiprocessing Pool like this:
with Pool() as pool: pool.starmap(function, args)
Sometimes it works well, but sometimes