A JSON RPC client and server pair. Ian Bicking thinks that doing this with WebOb makes more sense and provides a tutorial here.[1] [2]