code: def to_dict(self):
          
          return {sect: self.__getitem__(sect).to_dict()
                  for sect in self.sections()}
docs: Transform to dictionary
  
          Returns:
              dict: dictionary with same content