...and b) I'm specifically talking about cases too involved for a shell script to be reasonable.
I usually end up writing these programs in Python, but it's not from liking Python, or even from Python being "easy": it's that Python has a very rich standard library and that, when I need something outside the standard library, the community has typically standardized on one well-maintained library that does the thing in a sensible way.
Lemme give a list of examples of things I often want to do: