Use Python 3.x compatible except construct

Per (proposed) Hacking H203 check, always use the
except x as y: construct, which works with any
Python version >= 2.6, including Python 3.x.

Change-Id: I46028647d5a2a53ba8e9ce4d2e8fc6e71850fdae