Script to convert python code into java