import collections

ordered_dict = collections.OrderedDict([('apple', 4), ('banana', 3), ('orange', 2), ('pear', 1)])

so slightly more