Fix violations and enable gating on F841

This commit removes the F841 ignore from the tox config which disables the
check for unused variables. The change also removes the one violation of
this.

Change-Id: Ic16e494fbd1d67d222be3dadd3dea7d91157571a