Cleanup whitespace.
Update badges to use svg.
Update tests to use pytest and flake8.