How can I call a python function from an advanced scripting voice command in Dragon NaturallySpeaking?

I don't want to use a third-party application such as [dragonfly](https://pypi.python.org/pypi/dragonfly) or [NatLink](https://sourceforge.net/projects/natlink/) ([paper](https://web.archive.org/web/20170525163014/http://qh.antenna.nl/unimacro/implementationandacceptanceofnatlink.pdf)).