How to end a Program in Python?