automated change using python-modernize: fix methodattrs
Merge pull request #734 from ThomasWaldmann/methodattrs

automated change using python-modernize: fix methodattrs