Use new try/except syntax for Py3.x compat.

The pscheduler script doesn't work in Python 3.x so I fixed the try/except syntax.

Fixes issue #6.