Integrating python call from c++