Python: Python: iteration, break and continue