Remove weird distinction between unknown and not allowed methods.
Remove supported method hack.
Update for flake8 compliance.