code: def name(self):
          
          if self._name:
              return self._name
          return [
              line.strip() for line in self.__doc__.split("\n")
              if line.strip()][0]
docs: Use the first line of docs string unless name set.