break statement in if condition python