Complete rewrite as git-hooks; added setup.py