ScriptManager.runScriptFunction() example

Why?

You can directly access the SDK and do what you need to, without the overhead of translation to and from Jython objects.