Update pyjstest.py

python 2to3 conversion for exception handling and print.