code: def config_read():
      
      config_file = (u"{0}config.ini".format(CONFIG_DIR))
      if not os.path.isfile(config_file):
          config_make(config_file)
      config = configparser.ConfigParser(allow_no_value=True)
      try:
          config.read(config_file, encoding='utf-8')
      except IOError:
          print("Error reading config file: {}".format(config_file))
          sys.exit()
      # De-duplicate provider-list
      providers = config_prov(config)
      # Read credentials for listed providers
      (cred, to_remove) = config_cred(config, providers)
      # remove unsupported and credential-less providers
      for item in to_remove:
          providers.remove(item)
      return cred, providers
docs: Read config info from config file.