Set up the py4j gateway explicitly