I found the relevant directories eventually. The most relevant location for examples seems to be /python/source/Python-1.5.2/demo/scripts. The snippets site mentioned by Chris looks useful too. Thanks to Gerrit, Chris and Fredrik for their responses. Eugene.