Customized the hardware communication for my application. Pyserial has a buggy readline()