              handletype = self._contexts[command][variable][action]
          else:
              handletype = self._contexts[command][action]
          logger.debug(handletype)
          self._handletype = handletype
  
      def _open(self):
          """ Open a file. """
          logger.debug("Popping Open browser")
          return filedialog.askopenfile(**self._kwargs)
 
</s> remove     def _open(self):
 </s> add     def _open(self) -> Optional[IO]: </s> remove             handletype = self._contexts[command][action]
 </s> add             handletype = cast(Dict[str, Dict[str, str]],
                              self._contexts)[command][action] </s> remove             handletype = self._contexts[command][variable][action]
 </s> add             handletype = cast(Dict[str, Dict[str, Dict[str, str]]],
                              self._contexts)[command][variable][action] </s> remove         return filedialog.askopenfile(**self._kwargs)
 </s> add         return filedialog.askopenfile(**self._kwargs)  # type: ignore </s> remove     def _save(self):
 </s> add     def _save(self) -> Optional[IO]:
        self._handletype = cast(_HandleType, handletype)
              handletype = self._contexts[command][variable][action]
          else:
              handletype = self._contexts[command][action]
          logger.debug(handletype)
        self._handletype = cast(_HandleType, handletype)
  
      def _open(self):
          """ Open a file. """
          logger.debug("Popping Open browser")
          return filedialog.askopenfile(**self._kwargs)
keep keep keep keep replace keep keep keep keep keep
 Bugfix: Preview for extract in batch mode 
lib/gui/utils.py