rpcgen generating sync rpc call code for python

TODO:
  * exception handling
  * async rpc call
  * mem leak