range based for loop in python