Binding c++ template class with pybind11 and use it in python I have a c++ template class of this kind (this is a simpler version):