Making java compilation external to python script