This is a really neat idea, and is a lot more ergonomic than nulls or optionals in JS. Until optional chaining makes its way into the spec [0], this is the cleanest way I’ve seen to operate on maybe-null values.
It's good for unit testing though.
All in all, I'd like to have some kind of "?" operator in Python, I do think the pros are most of the time greater than the cons.