FIx python 3 unicode error, add tests/tty/ folder