experimental work around for recursion issue.
Added Jython support.
Merge pull request #440 from eandersson/master

Jython and recursive fix