automated change using python-modernize: fix methodattrs