BetterOrderedDict is a re-implementation of collections.OrderedDict that allows finer control over the order of its members.