python script to read serial output