Hi, Your best bet would be writing an Add-In for VB6's IDE. Check out: http://oreilly.com/catalog/devvbad/chapter/ch01.html For an intro to VB Add-ins and use SpamBayes as a model for your python code: http://spambayes.sourceforge.net/ Hope this helps Jose