Interoperability of python and c++ within language