Avoid iteritems in py3