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