def config_to_kodi(MASTER_SETTINGS, config):
 extracted_settings_for_kodi = {}
 for (setting, protocols) in MASTER_SETTINGS.iteritems():
  value = general_config_get(config, **protocols)
  extracted_settings_for_kodi[setting] = value
 return extracted_settings_for_kodi

def config_to_kodi ( MASTER_SETTINGS , config ) : extracted_settings_for_kodi = { } for ( setting , protocols ) in MASTER_SETTINGS . iteritems ( ) : value = general_config_get ( config , ** protocols ) extracted_settings_for_kodi [ setting ] = value return extracted_settings_for_kodi
takes the existing config and uses the protocols in the master_settings to extract the settings for use in kodi .