def unwrap_self_for_multiprocessing(arg):
(inst, method_name, args) = arg<EOL>return getattr(inst, method_name)(*args)<EOL>
You can not call methods with multiprocessing, but free functions,
        If you want to call  inst.method(arg0, arg1),

            unwrap_self_for_multiprocessing(inst, "method", (arg0, arg1))

        does the trick.