Fix redirect error with raw_input

Python bug (http://bugs.python.org/issue1927) causes raw_input to be redirected improperly between stdin/stderr on Unix systems if readline is not initialised first.