Substitute `dict.iteritems()` with `dict.items()`

We should provide both Python3 and Python2.7 support. `iteritems()` is
not available under Python3, so switch to `items()`. Under Python3 it
behaves as `iteritems()` do.