Can I send the url of the page from the javascript to the python program running on the client machine ??
Also can I redirect the output of the python program to the javascript to be displayed on the browser?
You can if you're running a server with Python.
Create a simple server with python and return json. The only requirement is that the python server must be started in order to except requests.
Is it possible to send a URL from javascript running on the browser to the python program running on the client machine?