Node.js and Python Interoperability
You can run snippets of Python code or open existing files (modules) and call functions directly, again converting between C++ and Python types for parameters and return values. Assuming we have two valid arguments passed from javascript and we’ve found a callable function, the next setp is to convert these two variables into python function arguments. Assuming isn’t , we’ve successfully called the python function from node and have received a return value.
Source: fridgerator.github.io