I can never remember whether you're supposed to use `setattr` for this kind of thing or not.