fixing 2.6 issue with OrderedDict