#!/usr/local/bin/python print "Content-type: text/html" print print "
" import os, sys from cgi import escape print "Python %s" % sys.version keys = os.environ.keys() keys.sort() for k in keys: print "%s\t%s" % (escape(k), escape(os.environ[k])) print ""