Fixed syntax for Python 3

Renamed raw_input() to input() and used function syntax for print() instead of 'print something' syntax