Python 3: fix a syntax error

"raise AttributeError, name" is invalid in Python 3.

Change-Id: Id61bd3747f49c2bd810cbfeae56506e7ed9d2bd0
Merge "Python 3: fix a syntax error"