import from ordereddict if OrderedDict not in collections