changed Python 2 print to Python 3-style print() to maintain consistency
fixed bug syntax error on line 861
changed get_buffer() to get, and other small fixes; see top of file for change log
set echo=False (otherwise too much text makes it hard to debug)