how can i write out to a serial device under Linux and wait until that device is ready to receive more data? device in question is a Panasonic RK-P400C and under pyserial listening to flush, DSR and CD neither work, several commands are overwritten and skipped