python modbus sub protocol for a data logger