bug fixes in talk_to_arduino.py