Normally "make bad states unrepresentable" is super helpful advice.
I keep trying to use itertools::EitherOrBoth in my APIs but I go back to (Option<T>, Option<T>) every time. I just end up with too much duplication in between the Left, Right and Both cases.
Python's yield keyword is rarely useful for laziness. I've only taken advantage of lazy computation a handful of times, e.g. dealing with paginated APIs.
The main advantage is syntactic sugar for producing iterables. Yield is much nicer than appending to a list and returning it!
I have never regretted time spent learning more about jq: https://stackoverflow.com/q/26701538/509706 .
There's a definite learning curve, but it's really powerful. Large blobs of JSON are ubiquitous in many REST APIs and nothing comes close to jq's convenience.