[python] Is there a method that tells my program to quit?