trigger pep8/pyflakes only when .py files are changed

Change-Id: I1b163315c9b1422e20a9cbadd9344def2637289a