On further consideration, iteritems is unnecessary here. Just use items.