code: def dump_conf(self, conf=None):
          
          if conf is None:
              conf = configparser.ConfigParser()
  
          tab = self.__class__.__name__
  
          conf[tab] = {}
  
          for key, val in self.__dict__.items():
              if key.endswith('_alt'):
                  continue
              conf[tab][key] = str(val)
  
          return conf
docs: Dump settings to an rc config file
  
          Parameters
          ----------
          conf
              configparser.ConfigParser() object
  
          Returns
          -------
          None