for loop in python without using range