'save a newly created theme.
themeName - string, the name of the new theme
theme - dictionary containing the new theme'

def SaveNewTheme(self, themeName, theme):

    if (not idleConf.userCfg['highlight'].has_section(themeName)):
        idleConf.userCfg['highlight'].add_section(themeName)
    for element in theme:
        value = theme[element]
        idleConf.userCfg['highlight'].SetOption(themeName, element, value)
