Pymodbus is a python implementation of modbus protocol providing both client and slave features.
PYMODBUS is a full modbus implementation of modbus protocol using python. It provides both client and server features and supports Modbus over RTU, ASCII, TCP, UDP protocols. The library also supports both synchronous and asynchronous variants of both client and server features.
Pymodbus is supported on both on python 2.7 and python 3.x
For more info refer