Clean up pyflakes warnings: unused imports and variables

Signed-off-by: Michael McCracken <mike.mccracken@canonical.com>