In this branch, I've added some tests for the functionality of the Python rpc client wrapper. In the process, I've also improved its API and ergonomics to remove the number of cases where writing these tests was unpleasant.
cc @jnewsome@opara would one of you like to take review on this?