'Make a copy of the stored config and write it to the configured file'

def write(self):

    new_config = ConfigObj(encoding='UTF-8')
    new_config.filename = self._config_file
    for (key, subkeys) in self._config.items():
        if (key not in new_config):
            new_config[key] = {}
        for (subkey, value) in subkeys.items():
            new_config[key][subkey] = value
    for key in _CONFIG_DEFINITIONS.keys():
        (key, definition_type, section, ini_key, default) = self._define(key)
        self.check_setting(key)
        if (section not in new_config):
            new_config[section] = {}
        new_config[section][ini_key] = self._config[section][ini_key]
    logger.info(u'PlexPy    Config    ::    Writing    configuration    to    file')
    try:
        new_config.write()
    except IOError as e:
        logger.error(u'PlexPy    Config    ::    Error    writing    configuration    file:    %s', e)
    self._blacklist()
