Add flake8 support

Flake8 is PEP8 + PyFlakes + Cyclomatic complexity check

I've added basic test too.