fix issue with OrderedDict not available for version of python below 2.7