The listed tutorial has the following application code:
def application(environ, start_response):
status = '200 OK'
output = 'Hello World!'
response_headers = [('Content-type', 'text/plain'),
('Content-Length', str(len(output)))]
start_response(status, response_headers)
return [output]
This is incompatable with python3.2 because it expects a bytes object. Replacing the application function with the following fixes things:
def application(env, start_response):
start_response('200 OK', [('Content-Type','text/html')])
return b"Hello World"