You need to have the python interpreter installed in the machine where you want to do that and call this interpreter as an external command from Java.
Look at this question to know more about how perform that call: Execute external programExecute external program
From there:
String[] params = new String [2];
params[0] = PATH2_YOUR_PYTHON_SETUP + "python.exe";
params[1] = PATH2_YOUR_PYTHON_SCRIPT;
Runtime.getRuntime().exec(params);
Additionally, you can use the returned Process object from exec
to interact with your script input/output.