Breakout clone in python