In keywords.py if an ImportError is raised when importing curses, a "NameError: name 'logger' is not defined" is thrown.