break out of if statement in python