iteritems is not available in python 3 anymore