modifications to java.py and test.py added to the commit