how to open python webservice in browser
<p>I have a code for simple HelloWorld webservice in python 3 :</p>

<pre><code>from werkzeug.wrappers import Request, Response

@Request.application
def application():
    return Response('Hello World!')

if __name__ == '__main__':
    from werkzeug.serving import run_simple
    run_simple('localhost', 4000, application)
</code></pre>

<p>I want to test this in a browser... I tried to open url : "<a href="http://localhost:4000/application" rel="nofollow">http://localhost:4000/application</a>" but it is giving an error "500".
How to solve this?</p>