Made "flake8 ." output less warnings.

Excluded docs/conf.py as its autogenerated by Sphinx and increased
acceptable complexity from 10 to 20.