How To Exit A Python Script In An If Statement