Fix compatibility with python2.6 for OrderedDict