Fix so that it works on windows (worker process needs to be pickleable)