for i in range python not working