cleaning up bitcoin_rpc.py