Update Python exception handling syntax to 3.0 style

I was just looking back over the Python changelog and spotted this
introduced in 2.6. The comma syntax was always ambiguous so I want to
try to get in the habit of using the new 'as' syntax.