i think that would be useful. it seems to be a thing that’s been requested more than once (although not necessarily for Python specifically):
- https://forum.inaturalist.org/t/add-ancestor-rank-level-to-get-observations-response-api/38992
- https://forum.inaturalist.org/t/is-it-possible-to-get-order-family-of-an-observation-from-the-inat-api/40523
- https://forum.inaturalist.org/t/is-there-a-better-way-to-make-api-requests-for-observations-ancestor-taxa/24724