fix for pyserial