Fix Java and Python experiments.