iteritems() is not longer valid in Python 3 so changing to items()