def kodi_to_config(MASTER_SETTINGS, config, new_settings):
 for (setting, new_value) in new_settings.iteritems():
  setting_protocols = MASTER_SETTINGS.get(setting, None)
  if (setting_protocols == None):
   continue
  config = general_config_set(config, new_settings, new_value, **setting_protocols)
 return config

def kodi_to_config ( MASTER_SETTINGS , config , new_settings ) : for ( setting , new_value ) in new_settings . iteritems ( ) : setting_protocols = MASTER_SETTINGS . get ( setting , None ) if ( setting_protocols == None ) : continue config = general_config_set ( config , new_settings , new_value , ** setting_protocols ) return config
takes the existing config .