Changes for Python 3

Python 3 doesn't have iteritems.