remove unused variables and imports

Use pyflake to find these.