import cgi

import sys, os

def app(environ, start_response):
    start_response('200 OK', [('Content-Type', 'text/html')])

    yield '

FastCGI Environment

' yield '' for key, value in sorted(environ.items()): yield '' % ( cgi.escape(key), cgi.escape(value) ) yield '
%s%s
'