def is_subclass(cls, classinfo):
 try:
  return issubclass(cls, classinfo)
 except TypeError:
  return False

def is_subclass ( cls , classinfo ) : try : return issubclass ( cls , classinfo ) except TypeError : return False
a more sensible version of the issubclass builtin .