Simple Python RPC server/client using JSON