End Command In Python Gui Development