try using iteritems