Yield from functions in bitcoin.py
Tests pass (excluding test_log and test_json_rpc)