code: def dump_config(self):
          
  
          conf = copy_config(self.config, self.mutable_config_keys)
          conf['state'] = {
              'cookiejar_cookies': list(self.cookies.cookiejar),
          }
          return conf
docs: Make clone of current config.