def app(env, start_response): start_response('200 Success', [('Content-Type', 'text/plain; charset=utf-8')]) return [ bytes(f'{key}: {value}\n', 'utf8') for key, value in env.items() ]