Used items() in lieu of iteritems(). While this isn't ideal in Python 2, it's compatible with both Python 2 & 3.