Updated syntax to Python 3

Except, e  => Except as e

I don't know if BasePlugin have too be fixed, because I can't find it