loops and control statements in python