Improved pre-commit

Also made it compatible with python 2.6.6
Changed Project Properties