How to properly quit a program in python,sys.exit(0)