ctkAbstractPythonManager: Clean up PythonQt before finalizing the Python interpreter
This commit moves the call to PythonQt's cleanup function to be before
the call that finalizes the Python interpreter. The interpreter should
still be running during PythonQt::cleanup() so that calls to Py_DECREF
succeed.