CLY is a Python module for simplifying the creation of interactive shells. clyweb is an AJAX interface to CLY.
Unfortunately I've declared this project discontinued, but the source code is still available at svn://clyweb.slowchop.com/clyweb.
You can see other projects of mine at geraldkaszuba.com