def main(request, response): script = request.GET.first(b"script") cookie_header = request.headers.get(b"Cookie", b"") body = b"""