There is no `iteritems` method in py3.  Try to use e.g. `items` instead.