oops, build failure on mac
add defer keyword for rpc; skip building python ext if library missing