Fix scc.py to let falke8 pass
Fix tests to let flake8 pass