import serial ser = serial.Serial('/dev/ttyUSB0',9600,timeout=5) ser.flushInput() ser.flushOutput() ser.write("get") # sleep(1) for 100 millisecond delay # 100ms dely sleep(.1) print ser.read()