code: def create_default_config():
      
      import codecs
      config = ConfigParser.SafeConfigParser()
      config.readfp(StringIO(DEFAULT_CONFIG))
  
      # Load user settings
      filename = get_user_config_filename()
      if not os.path.exists(filename):
          from wizard import setup_wizard
          setup_wizard(config)
      else:
          try:
              fi = codecs.open(filename, 'r', encoding='utf-8')
              config.readfp(fi)
          finally:
              fi.close()
      return config
docs: Create default ConfigParser instance