Changed tkinter import to Tkinter (Python 2.7)
Cleaned up code, mostly refactoring and reformatting.
Added spaces between binary operators.