That is an old syntax for catching exceptions. It should have been replaced with the keyword as
since Python 2.6, and it is probably not supported at all on Python 3.
Try to find another library that does support Python 3, or consider downgrading to Python 2.6 (which should really be a last-resort option).
You can review all details on PEP 3110.