Use correct iterator for an OrderedDict