End Command In Python Gui Library