You can take a look at some java script interpreter that has support for python. You can take a look at Rhino, Google's V8 (pyV8), or even pynarcissus.
Example from pyV8
,
>>> import PyV8
>>> ctxt = PyV8.JSContext() # create a context with an implicit global object
>>> ctxt.enter() # enter the context (also support with statement)
>>> ctxt.eval("1+2")