String s;
Process process = Runtime.getRuntime().exec("/usr/bin/python my.py");
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream());
while((s=bufferedReader.readLine()) != null) {
System.out.println(s);
}
process.waitfor();