Add pre-commit checker

Check trailing spaces, PEP8, and pdb

Change-Id: I2ec19a2a3e41aba4f0433f7ca5e760bbf08ab1f1
Merge "Add pre-commit checker" into stable/grizzly