Switch to Flake8 and add Hacking checks

Change-Id: I44a235e22677031262025152b869ea7d82ee266a