Could you be more specific about what you're trying to automate? Are you trying to integrate them into your existing build process so the .py files get deployed, or do you need to automate creating new Python projects, or open the projects within Visual
Studio, or something else?
The project files themselves are all msbuild projects so in general you'll want to map anything you want to do into terms of msbuild. For example if you wanted to copy the files you could have CMake run msbuild.exe /t:SomeTargetName yourPythonProject.pyproj and
then you could include a custom target in your .pyproj file such as:
That'll copy all of the .py files listed in <Content> tags to the destination folder.
Note PTVS doesn't ever really do a "build" of your project so from inside of VS doing a build may not ever be too useful for the Python projects. But presumably you already have some way to kick off CMake that I would think would be independent from