fixed import of OrderedDict for older versions of python