Install option for git-hooks in import script and bugfixes.

Such improvement. So pythonic.