class SerialPort(serialport.SerialPort):

    def _serialFactory(self, dev, *args, **kwargs):
        """ pyserial recommends the following for supporting serial urls """
Use RFC2217 network serial ports with Twisted Python?