def get_meth_func(obj):
 if PY2:
  return obj.im_func
 else:
  return obj.__func__

def get_meth_func ( obj ) : if PY2 : return obj . im_func else : return obj . __func__
return method function object .