          return kwargs
  
      def open(self):
          """ Open a file """
          return filedialog.askopenfile(**self.kwargs)
  
 
</s> remove         if handletype.lower() == "context":
            kwargs["filetype"] = filetype
            kwargs["command"] = command
            kwargs["action"] = action
            kwargs["variable"] = variable
 </s> add  </s> remove class FileHandler(object):
 </s> add class FileHandler(): </s> remove     def set_kwargs(self, handletype, filetype, command, action, variable=None):
 </s> add     def set_kwargs(self, filetype, command, action, variable=None): </s> remove         if handletype.lower() in ("open", "save", "filename", "savefilename"):
 </s> add         if self.handletype.lower() == "context":
            self.set_context_handletype(command, action, variable)

        if self.handletype.lower() in (
                "open", "save", "filename", "savefilename"): </s> remove         self.kwargs = self.set_kwargs(handletype, filetype, command, action,
                                      variable)
        self.retfile = getattr(self, handletype.lower())()
 </s> add         self.kwargs = self.set_kwargs(filetype, command, action, variable)
        self.retfile = getattr(self, self.handletype.lower())()
    def set_context_handletype(self, command, action, variable):
        """ Choose the correct file browser action based on context """
        if self.contexts[command].get(variable, None) is not None:
            self.handletype = self.contexts[command][variable][action]
        else:
            self.handletype = self.contexts[command][action]

          return kwargs
  
    def set_context_handletype(self, command, action, variable):
        """ Choose the correct file browser action based on context """
        if self.contexts[command].get(variable, None) is not None:
            self.handletype = self.contexts[command][variable][action]
        else:
            self.handletype = self.contexts[command][action]

      def open(self):
          """ Open a file """
          return filedialog.askopenfile(**self.kwargs)
  
keep add keep keep keep keep
 Gui - fix ffmpeg for windows 
lib/gui/utils.py