machine learning in c++ vs python