Add git pre-commit hook script for running flake8 on modified Python files.
docs: Document how to install a pre-commit hook.
Remove unnecessary contribute.