          if self.handletype.lower() == "save":
              kwargs["mode"] = "w"
          if self.handletype.lower() == "open":
              kwargs["mode"] = "r"
          return kwargs
  
      def set_context_handletype(self, command, action, variable):
          """ Choose the correct file browser action based on context """
 
</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("Set Kwargs: %s", kwargs)
          if self.handletype.lower() == "save":
              kwargs["mode"] = "w"
          if self.handletype.lower() == "open":
              kwargs["mode"] = "r"
        logger.debug("Set Kwargs: %s", kwargs)
          return kwargs
  
      def set_context_handletype(self, command, action, variable):
          """ Choose the correct file browser action based on context """
keep keep keep add keep keep keep keep
 Add right click menu to GUI. Implement some GUI Logging 
lib/gui/utils.py