Add workaround for Python 2.6's lack of OrderedDict