[python] Python: 'break' outside loop