how to convert c++ objects to Python?