improve jython integration flexibility