Using pybind11, embedding the interpreter and calling Python functions from C++ is relatively easy. However, I can\'t figure out how to add a Python member function to a C++