Iterative Control In Python