I\'m using raw_input in Python to interact with user in shell.
raw_input
c = raw_input(\'Press s or n to continue:\') if c.upper() == \'S\': print \'Y
Instead of the msvcrt module you could also use WConio:
msvcrt
>>> import WConio >>> ans = WConio.getkey() >>> ans 'y'