Improve automatic checking of code

Automate some things (coverage, PEP8/Pyflakes) to make life easier.