Fix tests
Add sloccount and pep8