SWIG_Python_TypeError has been removed. swig #3260 provides a few options. Obtained from: https://github.com/swig/swig/issues/3260#issuecomment-3272521479