Wrapping a C++ class in Python