how to limit application transmission retries in API tx frames

using python-xbee package and I seeing tx_status messages with a very high retries count

See the following:

{‘deliver_status’: b’\x00’, ‘discover_status’: b’\x00’, ‘retries’: b’\x14’, …

The xbee pro s2c documentation says “The number of application transmission retries that took place.”

I haven’t found a way to limit the application layer retries to not go crazy like this.

Any help is greatly appreciated!