Modbux is the tool I desperately needed four years ago. It handles both Modbus TCP and RTU, lets you assign datatypes to registers, scan for addresses and data, simulate servers for testing, and ...
In modbus configuration it is said that the retries parameter is "Retrying sending data to the master. The values can be either: true or false" But in PyModbus source code we can find : retries: int = ...