def spend_utxos(self, utxo_list, address_list=[]):
    ' spend utxos to provided list of addresses or 10 new generate ones.\n        :param      utxo_list:      (JSON list) returned from listunspent used as input\n                    address_list:   (string list) [optional] recipient TradePlus_Coin addresses. if not set,\n                                    10 new addresses will be generated from the wallet for each tx.\n        :return:    txHashes        (string list) tx hashes\n        '
    txHashes = []
    if (address_list == []):
        for i in range(10):
            address_list.append(self.node.getnewaddress())
    for utxo in utxo_list:
        try:
            txHash = self.spend_utxo(utxo, address_list)
            if (txHash != ''):
                txHashes.append(txHash)
        except JSONRPCException as e:
            self.log.error(('JSONRPCException: %s' % str(e)))
            continue
    return txHashes
spend utxos to provided list of addresses or 10 new generate ones.
:param      utxo_list:      (JSON list) returned from listunspent used as input
            address_list:   (string list) [optional] recipient TradePlus_Coin addresses. if not set,
                            10 new addresses will be generated from the wallet for each tx.
:return:    txHashes        (string list) tx hashes
def spend_utxos(self, utxo_list, address_list=[]):
    ' spend utxos to provided list of addresses or 10 new generate ones.\n        :param      utxo_list:      (JSON list) returned from listunspent used as input\n                    address_list:   (string list) [optional] recipient TradePlus_Coin addresses. if not set,\n                                    10 new addresses will be generated from the wallet for each tx.\n        :return:    txHashes        (string list) tx hashes\n        '
    txHashes = []
    if (address_list == []):
        for i in range(10):
            address_list.append(self.node.getnewaddress())
    for utxo in utxo_list:
        try:
            txHash = self.spend_utxo(utxo, address_list)
            if (txHash != ):
                txHashes.append(txHash)
        except JSONRPCException as e:
            self.log.error(('JSONRPCException: %s' % str(e)))
            continue
    return txHashes