These classes have been cleaned up in scripts/prepare_bindings.py and scripts/Python/prepare_binding_Python.py.
Both Xcode and cmake builds have been converted over.
Waiting to make sure this works for Windows, which has a few places where it does something different than the POSIX bits.