automated change using python-modernize: use 'as' in except
automated change using python-modernize: fix methodattrs
Merge pull request #732 from ThomasWaldmann/exceptions_as

automated change using python-modernize: use 'as' in except
Merge pull request #734 from ThomasWaldmann/methodattrs

automated change using python-modernize: fix methodattrs