support for bidirectional service calls (pylib only, codegen follows)