Python 3 compatibility for user input

This PR seeks to update all references to 'raw_input' to instead use six.moves.input for Python 3 compatibility.