Removed useless TODOs
Full stops on error messages
Fix most flake8 issues