compatibility with python 3.x

using "as" keyword instead of comma in except statement