Fixed Exception syntax for python 3.3