changed a lingering `iteritems()` to `items()` for python 3 compat