import python validate scripts and git hooks from the buildbot project

Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
pep8 on gtk3 branch

Signed-off-by: Gaetan Semet <gaetan@xeberon.net>