Use testr and flake8.

Change-Id: I748a0f54416ca540153ed5a9e7edfff739acaaea
Merge "Use testr and flake8."