code: def _save_cookie(cookie_name, cookie_value):
      
      config = ConfigParser.SafeConfigParser()
      config.read(_config)
      if not config.has_section('cookies'):
          config.add_section('cookies')
  
      config.set('cookies', cookie_name, cookie_value)
  
      with open(_config, 'w') as ini:
          config.write(ini)
docs: Save cookie