Maybe add a comment that .as_dict() is not the same as .values()?  (At first reading, I wanted to change this to .values(), until I happened to go look at as_dict().)