corrected an issue with python 2.x where raw_input was required rather than input