Callbacks are `noexcept` in C++, this does not give nice error ouputs/tracebacks in python. Should use lambdas in wrapper code, see https://pybind11.readthedocs.io/en/stable/advanced/exceptions.html#handling-unraisable-exceptions