swapping items for iteritems for python 3 readyness