Honestly the simplest way to get up and running is to use Node-Red. Our ncd-red-wireless-2 library runs very reliably.
However if you prefer to develop a script in Python or another language that is fine as well. That said our Python library relies on the connection to the modem being over USB. If memory serves me correctly you have an Ethernet modem, is that correct? If so we will need to do a little re-writing to the Python library to support a TCP socket connection to the Ethernet modem. The alternative to that would be to use a TCP to VCP driver to mount the Ethernet modem to the computer as a COM/Serial port.
Could you also let us know what OS the server computer runs that the modem will be connected to? Windows, Linux, etc?