use backport OrderedDict from python-ordereddict if not python 2.7