Added flake8, threading