fix iteritems for python3