Just testing some things out with Jython and Kotlin.
I have managed to put together an obj factory in Kotlin for instantiating Jython objects.
To build, just build normally using test.kt as main ig. (will appear in 'out' dir).
normally, ie. by pressing buttons in IntelliJ, or using kotlinc.
Additional note: This requires the Jython runtime library to compile, so you will need to add the path to that to the libraries.
(I strongly recommend using IntelliJ)