Make project pyflakes clean.
Make project pyflakes clean.

Added both a tox test-env for pyflakes and fixed the current pyflakes errors.
This did actually fix a couple of bugs.

The CI team has started using pyflakes on its projects and also has started
using oslo for things, so ignoring pyflakes warnings on the oslo code was
starting to get old. However, additionally, pyflakes is pretty solid, so we
should maybe consider gating on it across the board. (% locals() is the
biggest thing that we do that it doesn't like)

Change-Id: Iac1ca62db301892b7863711162fcbc74807eb24f

JioCloud/pbr,WiFast/pbr,klmitch/pbr,openstack-dev/pbr,emonty/oslo-packaging,klmitch/pbr,WiFast/pbr,citrix-openstack-build/pbr,openstack-dev/pbr,varunarya10/pbr,openstack-dev/pbr,citrix-openstack-build/pbr,redhat-openstack/pbr,varunarya10/pbr,redhat-openstack/pbr,emonty/oslo-packaging,citrix-openstack-build/pbr,JioCloud/pbr