For python3, exceptions should use "as err", not ", err"