this is part of as days pass by, by Stuart Langridge

Castalian

Castalian is an engine that allows you to embed Python in HTML pages, and also provides (an approximation to) the Active Server Page object model.

You can download it here.

To find out more about it, read the documentation (which is also supplied in the archive).

You can also browse the code for castalian.cgi directly.