Use "except Exception as var" everywhere

This patch removes the last cases where "except Exception, err:"
type syntax was used.