Make excepts python 3 compatible.