collections.OrderedDict dont exists in python 2.6

Added ordereddict when python is < 2.7. Needed in extract.py.