code: def broadcast_tx(self, tx):
          
          url = self.base_url("txs/push")
          data = {"tx": tx.as_hex()}
          result = json.loads(urlopen(url, data=json.dumps(data)).read().decode("utf8"))
          return result
docs: broadcast a transaction to the network