To make the relationship between pty.Attrs and pty.StoreAttributes() clearer: how about naming them more similarly? E.g. pty.Attrs and pty.StoreAttrs().