Python backend for server.