Enable F841 and clean up

F841 detects local variable is assigned to but never used.
This commit enable F841 in gate. This commit also fixes violations.

Change-Id: Ia4f344f7116c6a170f696e4cf29bc0a8a4ed5376
Merge "Enable F841 and clean up"