Restore Python 2.4 support (remove Exception as).  Sorry, PEP8