adding python code to java file