import collections OrderedDict = collections.OrderedDict