improve compat to Py3 a little

Signed-off-by: Erik Bernoth <erik.bernoth@gmail.com>
0.8.0: updated exception structure (GH #105)

Signed-off-by: Erik Bernoth <erik.bernoth@gmail.com>