Enable most of the pyflakes checks.

Fixes: bug #1185833

Change-Id: Ife71a86a4c24f97b8bdbaa2c13b7edc05ace34f0
Merge "Enable most of the pyflakes checks."