loop on items as iteritems is not creating a list