Using Pymodbus TCP Client implementaion
Solution 1:
This should get you started.
from pymodbus.client.sync import ModbusTcpClient
#modbus connection
client = ModbusTcpClient('192.168.1.100')
connection = client.connect()
#read register
request = client.read_holding_registers(xxxx,3) #covert to float
result = request.registers
#write to register
client.write_registers(xxxx, [xxxx,xxxx,xxxx])