Use OrderedDict from ordereddict for Python < 2.7