using backport version of ordereddict for python 2.6