`iteritems` doesn't exist in python3, you have to use `items`.