break out of if else statement python