Replaced `iteritems()` by `items()`, to maintain Python 3 compatibility.