changed hardware.py to allow for /dev/tty input in Com