def looks_like_issubclass(obj, classname):
 t = obj
 if (t.__name__ == classname):
  return True
 for klass in t.__mro__:
  if (klass.__name__ == classname):
   return True
 return False

def looks_like_issubclass ( obj , classname ) : t = obj if ( t . __name__ == classname ) : return True for klass in t . __mro__ : if ( klass . __name__ == classname ) : return True return False
return true if the object has a class or superclass with the given class name .