Workaround for missing OrderedDicts in Python 2.6.