PLD: make flake8 and add test to run flake8