There's no way you're still waiting for an answer 11 years later, but for anyone else with the same question... I'd recommend using Flask on the server to listen for HTTP requests. Flask is very quick to get started. But you'll need to write a helper function to convert the json data in the incoming request to arguments that you pass into the server functions.
I actually made a package that does exactly what you're asking. It lets you call server functions from the client: https://github.com/mariusfacktor/forthright
Check out the example in the readme and it should be straight forward to understand.