code: def set_default(self):
          
          try:
              os.makedirs(os.path.dirname(self._configfile))
          except:
              pass
  
          self._config = configparser.RawConfigParser()
          self._config.add_section('Settings')
  
          for key, val in self.DEFAULTS.items():
              self._config.set('Settings', key, val)
  
          with open(self._configfile, 'w') as f:
              self._config.write(f)
docs: Set config to default.