Update serial_thds.py