Note that this thread ends in a predictable fashion:
You seem to be writing it in python and then calling it from within python in the example.
Having the two runtimes coupled seems to be the ideal way to run both languages in the same process.
EDIT: nevermind. i'm dyslexic