compatibility with python 3.x

except syntax using "as" keywords instead of comma ","
compatibility with python 3.x

using "as" keyword instead of comma in except statement
Merge pull request #165 from ivantchomgue/patch-1

compatibility with python 3.x
Merge pull request #166 from ivantchomgue/patch-2

compatibility with python 3.x