backported OrderedDict for py2.6