* Replace the use of iteritems() and itervalues() on dictionary objects with items() and values() respectively for Python 3 compatibility.