Fallback to ordereddict for python 2.6 (OrderedDict is not available in collections).