python for loop number of items in list