def parallel_helper(obj, methodname, *args, **kwargs):
 return getattr(obj, methodname)(*args, **kwargs)

def parallel_helper ( obj , methodname , * args , ** kwargs ) : return getattr ( obj , methodname ) ( * args , ** kwargs )
helper to workaround python 2 limitations of pickling instance methods .