Your comments

The easiest would be to let other applications send text commands, just like if it was typed into the Python terminal, this would let an AppleScript access all the functions and plugins and should be very simple to implement - similar to how Chrome let's you execute arbitrary Javascript through AppleScript.