Echo functionality is working with php variables passed through python and c++