Don't use `iteritems()`

Python 3 compatibility.