Import 'sys' library in gui.py for logging.