python rpc made nice for interactive use