Runtime: STRING type for Python PLC Globals was making problem with strings, since generated code wasn't doing comparison properly.
<?xml version='1.0' encoding='utf-8'?>
<ModbusServerNode xmlns:xsd="http://www.w3.org/2001/XMLSchema" Local_Port_Number="1502" Local_IP_Address="127.0.0.1"/>