python for loop with integer range