End Command In Python Gui Programming