import sys
def application(environ, start_response):
status = '200 OK'
output = str(environ).encode('UTF-8')
response_headers = [('Content-type', 'text/plain'),
('Content-Length', str(len(output)))]
start_response(status, response_headers)
return [output]