samba python tests: convert 'except X, e' to 'except X as e'