A support API to simplify scripting with kscript