How To Exit If Statement In Python