making compatible with jython