Update __init__.py to support python 3.3 syntax

Make exception syntax python 3.3 compatible. This is backward compatible to 2.6 and 2.7