The author is of this course is also one one of the original authors of SWIG which got discussed here just yesterday. Two HN front pages in two days!
Please use ctypes, cffi or https://github.com/wjakob/nanobind
Beazley himself is amazed that it (Swig) is still in use.