added hook for jenkins notification-plugin
Fix some minor PEP8 issues.