Fix 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.
Merge pull request #327 from Zomnut/master

Fix command line redirect error