          }
          self.defaults = self.set_defaults()
          self.kwargs = self.set_kwargs(filetype, command, action, variable)
          self.retfile = getattr(self, self.handletype.lower())()
  
      def set_defaults(self):
          """ Set the default filetype to be first in list of filetypes,
              or set a custom filetype if the first is not correct """
          defaults = {key: val[0][1].replace("*", "")
                      for key, val in self.filetypes.items()}
 
</s> remove             self.handletype = self.contexts[command][variable][action]
 </s> add             handletype = self.contexts[command][variable][action] </s> remove             self.handletype = self.contexts[command][action]
 </s> add             handletype = self.contexts[command][action]
        logger.debug(handletype)
        self.handletype = handletype
        logger.debug("Initialized %s", self.__class__.__name__)
          }
          self.defaults = self.set_defaults()
          self.kwargs = self.set_kwargs(filetype, command, action, variable)
          self.retfile = getattr(self, self.handletype.lower())()
        logger.debug("Initialized %s", self.__class__.__name__)
  
      def set_defaults(self):
          """ Set the default filetype to be first in list of filetypes,
              or set a custom filetype if the first is not correct """
          defaults = {key: val[0][1].replace("*", "")
                      for key, val in self.filetypes.items()}
keep keep keep add keep keep keep keep keep keep
 Add right click menu to GUI. Implement some GUI Logging 
lib/gui/utils.py