code: def deepcopy(self):
          
          # Save actual config to a string
          config_string = StringIO()
          self.write(config_string)
  
          # We must reset the buffer ready for reading.
          config_string.seek(0)
  
          # Create a new config object
          config_copy = ExtendedConfigParser()
          config_copy.readfp(config_string)
  
          return config_copy
docs: Returns a deep copy of config object
  
          :returns: a copy of the config object