Replace misc.ordereddict by collections.OrderedDict