Implementing a fallback to python's OrderedDict.