limited_dict (pypi): A dictionary-like object which only stores the highest or lowest N values
Keywords: dict|limited|sorted|sorteddict