Instead, use the new(er) vips8 C++ interface, and the new(er) python interface in pypi. https://pypi.org/project/pyvips
This is the vips8 C++ binding. The old vips7 binding is still there, but this one is better. See the vips API docs for documentation.