I am about to compile a project in Java that executes a .py file in a Process like this:
String command = "python " + localPath + "/src/models/