A full modbus protocol written in python