code: def class_name(c):
      
      if not isinstance(c, type):
          c = type(c)
  
      return '%s.%s' % (c.__module__, c.__name__)
docs: :param c: either an object or a class
      :return: the classname as a string