      """ Raise a filedialog box and capture input """
  
      def __init__(self, handletype, filetype, command=None, action=None,
                   variable=None):
  
          self.handletype = handletype
          all_files = ("All files", "*.*")
          self.filetypes = {"default": (all_files,),
                            "alignments": (("JSON", "*.json"),
                                           ("Pickle", "*.p"),
 
</s> remove             self.handletype = self.contexts[command][action]
 </s> add             handletype = self.contexts[command][action]
        logger.debug(handletype)
        self.handletype = handletype </s> remove             self.handletype = self.contexts[command][variable][action]
 </s> add             handletype = self.contexts[command][variable][action] </s> remove class OptionControl(object):
 </s> add class OptionControl():
        logger.debug("Initializing %s: (Handletype: '%s', filetype: '%s', command: '%s', action: "
                     "'%s', variable: %s)", self.__class__.__name__, handletype, filetype, command,
                     action, variable)
      """ Raise a filedialog box and capture input """
  
      def __init__(self, handletype, filetype, command=None, action=None,
                   variable=None):
        logger.debug("Initializing %s: (Handletype: '%s', filetype: '%s', command: '%s', action: "
                     "'%s', variable: %s)", self.__class__.__name__, handletype, filetype, command,
                     action, variable)
          self.handletype = handletype
          all_files = ("All files", "*.*")
          self.filetypes = {"default": (all_files,),
                            "alignments": (("JSON", "*.json"),
                                           ("Pickle", "*.p"),
keep keep keep keep replace keep keep keep keep keep
 Add right click menu to GUI. Implement some GUI Logging 
lib/gui/utils.py