Changed except statements to use "as" for Python3 compatibility.  (Note that there are many more things that need to be addressed for Python3.)