clear out secret key and some pass flake8 (bug 999774)