I\'m adding Python scripting to a C program with SWIG. The program is a text editor that has a "command"-oriented architecture: there are various commands defined,