8b5abd7
Revert "Improve compatibility with Python 3 SWIG bindings" The patch introduced new issues and memory leaks. This reverts commit cb8eded90a51df9df8276f490536550c56954a09.