              exit(1)
  
      def execute_script(self, arguments):
          """ Run the script for called command """
          log_setup(arguments.loglevel, arguments.logfile, self.command)
          logger.debug("Executing: %s. PID: %s", self.command, os.getpid())
          try:
              script = self.import_script()
              process = script(arguments)
              process.process()
 
</s> remove def log_setup(loglevel, logfile, command):
 </s> add def log_setup(loglevel, logfile, command, is_gui=False): </s> remove def stream_handler(loglevel):
 </s> add def stream_handler(loglevel, is_gui): </s> remove     log_console = TqdmHandler(sys.stdout)
 </s> add     if is_gui:
        # tqdm.write inserts extra lines in the GUI, so use standard output as
        # it is not needed there.
        log_console = logging.StreamHandler(sys.stdout)
    else:
        log_console = TqdmHandler(sys.stdout) </s> remove     s_handler = stream_handler(numeric_loglevel)
 </s> add     s_handler = stream_handler(numeric_loglevel, is_gui)
        is_gui = hasattr(arguments, "redirect_gui") and arguments.redirect_gui
        log_setup(arguments.loglevel, arguments.logfile, self.command, is_gui)
              exit(1)
  
      def execute_script(self, arguments):
          """ Run the script for called command """
        is_gui = hasattr(arguments, "redirect_gui") and arguments.redirect_gui
        log_setup(arguments.loglevel, arguments.logfile, self.command, is_gui)
          logger.debug("Executing: %s. PID: %s", self.command, os.getpid())
          try:
              script = self.import_script()
              process = script(arguments)
              process.process()
keep keep keep keep replace keep keep keep keep keep
 Remove extra line breaks from GUI console output 
lib/cli.py