Add flushing after writing to make Python 3 work
Use termios to fix tty attributes
Make all divisions integer divisions
Merge pull request #4 from jvns/master

Add flushing after writing to make Python 3 work