code: def _formatter_class(name, value):
      
      __mname = value.__module__
      if __mname != '__main__':
          return "%s = <type '%s.%s'>" % (name, __mname, value.__name__)
      else:
          return "%s = <type '%s'>" % (name, value.__name__)
docs: Format the "klass" variable and value on class methods.