def _selfOfMethod(methodObject):
 if _PY3:
  return methodObject.__self__
 return methodObject.im_self

def _selfOfMethod ( methodObject ) : if _PY3 : return methodObject . __self__ return methodObject . im_self
get the object that a bound method is bound to .