compatibility with python 3.x

except syntax using "as" keywords instead of comma ","
Merge pull request #165 from ivantchomgue/patch-1

compatibility with python 3.x