code: def write_config_file_value(key, value):
      
  
      filename = get_config_file()
  
      config = _ConfigParser.SafeConfigParser()
      config.read(filename)
  
      __section = "Environment"
  
      if not(config.has_section(__section)):
          config.add_section(__section)
  
      config.set(__section, key, value)
  
      with open(filename, 'w') as config_file:
          config.write(config_file)
docs: Writes an environment variable configuration to the current
      config file.  This will be read in on the next restart.
      The config file is created if not present.
  
      Note: The variables will not take effect until after restart.