Fixing TERMIOS problem with newer Pythons.