Python: add RPC server and handle GWT threading. Java: ProcessBuilder instead of Runtime.getRuntime.exec()