Add code quality test for self assignments (fixes #8362)
Code quality: don't assign to self (issue #8362)
Fix remaining self assignments
Fix py3-incompatible code
py3 fix for mailmap_update.py
Code quality: don't assign to cls (classmethod's)