Replace iteritems with items

There is no dict.iteritems in Py3. And in Py2, it really shouldn't make much of a performance difference to use dict.items.