code: def set_section(self, section):
          
          if not isinstance(section, Section):
              raise Exception("You")
  
          try:
              self.remove_section(section.name)
          except:
              pass
  
          self._sections[section.name] = copy.deepcopy(section)
docs: Set a section. If section already exists, overwrite the old one.