Convert Javascript to Python and Python to Javascript.  This is a nice write up of several tools to make that task easier.  Read the article here. [http://www.infoworld.com/article/3033047/javascript/4-tools-to-convert-python-to-javascript-and-back-again.html]