Switch to flake8 and testr

Change-Id: Ia25ef86786895f376be410f74b9a30e3e8ff4243