breakout in python code