Refactor to black/flake8.

2 jobs for fix-ctf in 33 seconds (queued for 1 second)