Force unbuffered stdout when using raw_input() on Python 2