I finally got a template to call python. Getting it to work depends on a subtle distinction between dtml methods and documents. Methods rely on acquisition( zope lingo for its namespace inheritance mechanism ). So next I can explore templates as another possibility. Cayte