Added try/except for importing Tkinter.