Fix raw_input redirect error

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.