PythonQt library uses Qt introspection to interface python and Qt+C++ code.
1. Create a plugin to investigate feasibility.
2. Test performance.
3. Work out details of building on 3 platforms.
This may be an easier and more complete alternative for python scripting in krita.