nice write up Nikesh Jauhari!
copy of what was done (in case linuxpoison blog goes away)
simple 1 line current dir file server!
python -m SimpleHTTPServer 8080
Or cgi with this:
python -m CGIHTTPServer
and browse to : http://localhost:8080/myscript.py
Works with non-python cgi as well!
Sweet python webserver.
For Python 3 - find info here:
python3 -m http.server --help