fix compatibility with Swig 4.3 Python API This fixes an FTBFS issue with newer Swig releases. The SWIG_Python_AppendOutput() function does not provide a stable ABI across releases. However, it can be replaced by the wrapper function SWIG_AppendOutput() which works on all Swig releases. A similar patch has been applied by the upstream author in the unreleased stable branch.