Replace iteritems() with items() for Python 3 compat