from pymodbus.constants import Defaults
Defaults.Reconnects = 15
So the factory generates clients and the protocol describes how the clients communicate. The factory can decorate the created client with extra code to control how it works. For more information read this please:
http://twistedmatrix.com/documents/13.0.0/core/howto/clients.html
Don't edit the existing file, recreate the needed code in your project.
You can build a reconnecting client this way, but twisted has already written all this code for you. All you have to do is configure it correctly.