Support SWIG 4.5.0 and drop python 2 support

Don't rely on Python 2 compatibility macros in the SWIG headers. They were removed in SWIG 4.5.0.

Merge request reports

Loading