response_headers = [('Content-Type', 'text/plain'), ('Content-Length', str(
    len(response_body)))]
start_response(status, response_headers)
return [response_body]
httpd = make_server('localhost', 8051, application)
httpd.handle_request()
Lightweight setup to generate Web pages in pure Python