The kwargs are sensitive to local variable name changes in the C++ code, as of a recent pybind11 version.