Generating Python Script by C++.