Python 3 compatibility changes

The pull request actually contains two independent changes. 

One of them is related to https://github.com/celery/kombu/issues/184

The other is just a exception catch syntax change