multiprocessing PickleError workaround