Use "items()" instead of "iteritems()"