flake8 fixes in dodo.py