My python program has two calls to raw_input()
raw_input()
The first raw_input() is to take multiline input from the user. The user can issue Ctrl+D (
It's quite normal that when standard input is terminated (by hitting control-D, in Unix-derived systems -- I think it's control-Z in Windows), it stays terminated thereafter (unless you close and re-open it in the meantime, of course).