python break for if statement