Some linux distributions (in particular arch linux) use python 3 as their default. This means that /usr/bin/python is a symlink to /usr/bin/python3. Your code however is not compatible with python3. A simple fix, which should maintain compatibility with other distributions is to explicitly start the program with python2. I have provided the necessary change for you.
Some linux distributions (in particular arch linux) use python 3 as their default. This means that
/usr/bin/python
is a symlink to/usr/bin/python3
. Your code however is not compatible with python3. A simple fix, which should maintain compatibility with other distributions is to explicitly start the program with python2. I have provided the necessary change for you.