code: def clear(self):
          
          self.ops = []
          self.wifs = set()
          self.signing_accounts = []
          # This makes sure that _is_constructed will return False afterwards
          self["expiration"] = None
          dict.__init__(self, {})
docs: Clear the transaction builder and start from scratch