call an external javascript function from python
<p>I have a javascript function that I can call with input and that returns a result.
I can integrate this javascript function into an html-document (of course).</p>

<p>Now I would like to call exactly this javascript function from python. I have a python programm and want to call the javascript function with input parameters passed to the JS function by the calling python function. And the JS function shall return some result to python.</p>

<p>This JS function has quite complex functionality and is used in a web project also. I would like to use same functionality in Python.</p>

<p>Does anyone know how to solve this? Python is quite huge so I think I only did not find the required python module up until know. I spent 2 days in searching a possibility.</p>

<p>Thanks!</p>
