Sometimes you're trying to find the value of a constant - but you don't know what it is. And maybe it's in a framework. Maybe you've run ripgrep (rg) or the silversearcher (ag) and found hits on those framework binaries when looking for that variable name.
I've done lookups before via ctypes: https://gist.github.com/pudquick/8f65bb9b306f91eafdcc
And via pyobjc: https://gist.github.com/pudquick/ac8f22326f095ed2690e
And now I have another way that's somewhere inbetween: