                  old_value = self.config.config[section][item]
                  if new_value != old_value:
                      logger.trace("Updating config: %s, %s from %s to %s",
                                   section, item, old_value, new_value)
                      self.config.config[section][item] = new_value
  
      def get_config_dicts(self):
          """ Hold a custom config dict for the config """
          config_dicts = dict()
          for section in self.config.config.sections():
              if section == "writer":
                  continue
              default_dict = self.config.defaults[section]
 
</s> remove         for section in self.config.config.sections():
            if section == "writer":
 </s> add         for section in self._config.config.sections():
            if section.startswith("writer."): </s> remove                 old_value = self.config.config[section][item]
 </s> add                 old_value = self._config.config[section][item] </s> remove             default_dict = self.config.defaults[section]
            for key in default_dict.keys():
 </s> add             for key, val in self._config.defaults[section].items(): </s> remove                     # raise an error on numeric datatypes so return 0
 </s> add                     # raise an error on numeric data types so return 0 </s> remove         """ Update config with selected values """
 </s> add         """ Update :attr:`config` with the currently selected values from the GUI. """
                    self._config.config[section][item] = new_value

    def _get_config_dicts(self):
        """ Obtain a custom configuration dictionary for convert configuration items in use
        by the preview tool formatted for control helper.

        Returns
        -------
        dict
            Each configuration section as keys, with the values as a dict of option:
            :class:`lib.gui.control_helper.ControlOption` pairs. """
        logger.debug("Formatting Config for GUI")
                  old_value = self.config.config[section][item]
                  if new_value != old_value:
                      logger.trace("Updating config: %s, %s from %s to %s",
                                   section, item, old_value, new_value)
                    self._config.config[section][item] = new_value

    def _get_config_dicts(self):
        """ Obtain a custom configuration dictionary for convert configuration items in use
        by the preview tool formatted for control helper.

        Returns
        -------
        dict
            Each configuration section as keys, with the values as a dict of option:
            :class:`lib.gui.control_helper.ControlOption` pairs. """
        logger.debug("Formatting Config for GUI")
                    self._config.config[section][item] = new_value

    def _get_config_dicts(self):
        """ Obtain a custom configuration dictionary for convert configuration items in use
        by the preview tool formatted for control helper.

        Returns
        -------
        dict
            Each configuration section as keys, with the values as a dict of option:
            :class:`lib.gui.control_helper.ControlOption` pairs. """
        logger.debug("Formatting Config for GUI")
                    self._config.config[section][item] = new_value

    def _get_config_dicts(self):
        """ Obtain a custom configuration dictionary for convert configuration items in use
        by the preview tool formatted for control helper.

        Returns
        -------
        dict
            Each configuration section as keys, with the values as a dict of option:
            :class:`lib.gui.control_helper.ControlOption` pairs. """
        logger.debug("Formatting Config for GUI")
                    self._config.config[section][item] = new_value

    def _get_config_dicts(self):
        """ Obtain a custom configuration dictionary for convert configuration items in use
        by the preview tool formatted for control helper.

        Returns
        -------
        dict
            Each configuration section as keys, with the values as a dict of option:
            :class:`lib.gui.control_helper.ControlOption` pairs. """
        logger.debug("Formatting Config for GUI")
          config_dicts = dict()
          for section in self.config.config.sections():
              if section == "writer":
                  continue
              default_dict = self.config.defaults[section]
keep keep keep keep replace replace replace replace keep keep keep keep keep
 Smart Masks to Convert (#957)

- scripts.convert - Use Smart Masks for Convert
    * Make on-the-fly conversion an explicit option

- Move BlurMask to lib.faces_detect

- tools.preview - Fix for smart masks
    * Subclass from tk.Tk
    * Options to lib.gui.control_helper
    *variable cleanup

- lib.logger - Demote more tensorflow deprecation messages

- Documentation:
    * lib.faces_detect.BlurMask
    * plugins.convert.mask
    * lib.convert
    * scripts.convert
    * scripts.fsmedia
    * tools.preview 
tools/preview.py