def parallel_helper(obj, methodname, *args, **kwargs):
    return getattr(obj, methodname)(*args, **kwargs)
Helper to workaround Python 2 limitations of pickling instance methods
dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/utils/fixes.py/parallel_helper