Use items() instead of iteritems() for Python3 compatibility.

iteritems() was dropped in recent Python3 releases and items() is compatible
with Python 2.7.
48 files changed