              kwargs["initialdir"] = initialdir
  
          if self._handletype.lower() in (
                  "open", "save", "filename", "filename_multi", "save_filename"):
              kwargs["filetypes"] = self._filetypes[filetype]
              if self._defaults.get(filetype):
                  kwargs['defaultextension'] = self._defaults[filetype]
          if self._handletype.lower() == "save":
              kwargs["mode"] = "w"
          if self._handletype.lower() == "open":
              kwargs["mode"] = "r"
          logger.debug("Set Kwargs: %s", kwargs)
 
</s> remove         if initialdir is not None:
            kwargs["initialdir"] = initialdir
 </s> add         if initial_folder is not None:
            kwargs["initialdir"] = initial_folder

        if initial_file is not None:
            kwargs["initialfile"] = initial_file </s> remove         logger.debug("Setting Kwargs: (title: %s, initialdir: %s, filetype: '%s', "
                     "command: '%s': action: '%s', variable: '%s')",
                     title, initialdir, filetype, command, action, variable)
 </s> add         logger.debug("Setting Kwargs: (title: %s, initial_folder: %s, initial_file: '%s', "
                     "file_type: '%s', command: '%s': action: '%s', variable: '%s')",
                     title, initial_folder, initial_file, file_type, command, action, variable) </s> remove         self._build_header()
 </s> add 
            kwargs["filetypes"] = self._filetypes[file_type]
            if self._defaults.get(file_type):
                kwargs['defaultextension'] = self._defaults[file_type]
              kwargs["initialdir"] = initialdir
  
          if self._handletype.lower() in (
                  "open", "save", "filename", "filename_multi", "save_filename"):
            kwargs["filetypes"] = self._filetypes[file_type]
            if self._defaults.get(file_type):
                kwargs['defaultextension'] = self._defaults[file_type]
            kwargs["filetypes"] = self._filetypes[file_type]
            if self._defaults.get(file_type):
                kwargs['defaultextension'] = self._defaults[file_type]
            kwargs["filetypes"] = self._filetypes[file_type]
            if self._defaults.get(file_type):
                kwargs['defaultextension'] = self._defaults[file_type]
          if self._handletype.lower() == "save":
              kwargs["mode"] = "w"
          if self._handletype.lower() == "open":
              kwargs["mode"] = "r"
          logger.debug("Set Kwargs: %s", kwargs)
keep keep keep keep replace replace replace keep keep keep keep keep
 GUI - Plugin preset support
  - Add ability to load and save presets for all existing faceswap plugins
  - Add phaze-a presets 
lib/gui/utils.py