Python 3 fix

remove call to iteritems which doesn't exist in py3.