Added solution to call the parser directly from Java; but discovered that when weakref is imported; threads seem to be leaking - filled an issue: http://bugs.jython.org/issue2127