Fixed a couple PY3K incompatibilities.

There are still work to be done, but this is a start.
This will not work on Python 2. A universal syntax does not exist, so some version sniffing will be needed, like [Python-Future’s implementation](http://python-future.org/_modules/future/utils.html#raise_with_traceback) (`raise_with_traceback`).