Hi Ji,
Both, the python version and the C++ use the same implementation of the NHPYLM.
The python version only provides bindings to train the language model on a segmented training corpus and apply the language to some test sentence (either characters or words or a mixture of both). It also contains some demo code.
The C++ code serves an extended purpose. It implements the unsupervised segmentation of (partially) unsegmented data according to Mochihashi and our extensions (see papers by Heymann and Walter).
You could use the Python bindings as well, but you would have to reimplement the iterations and parsing of results.