Reconstruct python to java impl, rem jython