def get_meth_class(obj):
 if PY2:
  return obj.im_class
 else:
  return obj.__self__.__class__

def get_meth_class ( obj ) : if PY2 : return obj . im_class else : return obj . __self__ . __class__
return method class .