Python code that speaks the Bitcoin protocol, for use with pycoin