#!/usr/bin/env python3
import serial
import sys
TIMEOUT = 60*60*8
with serial.Serial(sys.argv[1] if len(sys.argv) > 1 else "/dev/ttyACM1", 9600, timeout=TIMEOUT) as ser:
while True:
w = ser.read(1)
sys.stdout.buffer.write(w)
sys.stdout.buffer.flush()