Install json-rpc package.

Remove http and json library imports.
Replace http client calls with jsonrpc.

Doesn't work properly at that point.