fix iteritems for Py3