Use "except Exception, name" form for Python 2.4 compat

Fixes issue #47