Fixed exception syntax for python 2.6+ & 3.x

Fixes the syntax of an exception handle so it will install under pip3