First version to combine Python with C++