Fix for command line in Python 3.x

This fix the command line "mode" changing from `raw_input` to `input` for Python 3.

I have tested this solution under Python 2.7 and Python 3.3 and works fine.