Fix pep8 errors
Remove stray set_trace

thankfully pep8 caught this!
Add missing import of reverse

'reverse' was referenced but not imported.
Update flake8 command to ignore some file types