stop using OrderedDict to support old version of Python.