def _methodFunction(classObject, methodName):
 methodObject = getattr(classObject, methodName)
 if _PY3:
  return methodObject
 return methodObject.im_func

def _methodFunction ( classObject , methodName ) : methodObject = getattr ( classObject , methodName ) if _PY3 : return methodObject return methodObject . im_func
retrieve the function object implementing a method name given the class its on and a method name .