Added flake8 check

Check will either run on the existing changes, if there are any or on
the last commit.

Change-Id: I1a3592300ae87ee564158a4267c01ccd9c4454fa