I don't know python, but do think what you need to do is build in a test for whether the normal device exists and, if it does not, then see what the device name is that has been assigned to your modem. I use a USB modem, but I don't recall it ever being assigned a different /dev address. You probabl...