docs: def select_inputs(self, address: str, amount: int) -> dict:
          '''finds apropriate utxo's to include in rawtx, while being careful
          to never spend old transactions with a lot of coin age.
          Argument is intiger, returns list of apropriate UTXO's'''
  
          utxos = []
          utxo_sum = Decimal(0)
          for tx in sorted(self.listunspent(address=address), key=itemgetter('confirmations')):
  
              if tx["address"] not in (self.pa_parameters.P2TH_addr,
                                       self.pa_parameters.test_P2TH_addr):
  
                  utxos.append(
                          MutableTxIn(txid=tx['txid'],
                                      txout=tx['vout'],
                                      sequence=Sequence.max(),
                                      script_sig=ScriptSig.empty())
                           )
  
                  utxo_sum += Decimal(tx["amount"])
                  if utxo_sum >= amount:
                      return {'utxos': utxos, 'total': utxo_sum}
  
          if utxo_sum < amount:
              raise InsufficientFunds("Insufficient funds.")
  
          raise Exception("undefined behavior :.(")