Generate JSON-RPC requests and parse responses in Python.
from jsonrpcclient import parse, request
import requests
response = requests.post("http://localhost:5000/", json=request("ping"))
parsed = parse(response.json()) # Ok(result='pong', id=1)
Watch a video on how to use it.
Full documentation is at jsonrpcclient.com.
See also: jsonrpcserver