I forgot to add: an big advantage of staying with the jsonrpc as is done by the pyjamas examples is XHR is supported by browsers and you will only need to figure out how to serve your server side app through webserver_X if you do not have control over which webserver is used to host your production application. In other words, if you are working for someone or a PHB who insists that webserver_X be used to serve the application rather than mongrel2, if you stick to jsonrpc over html you shouldn't have to rewrite and retest your server side application.
It really depends on where you are looking to communicate (between pyjs app and the server portion of the app or on the server backend(s)). --Jeff

