iteritems is no longer supported for python 3, hence this needs a modification.