Modified getch.py