Remove unused imports and fix typo in variable name - thanks, pyflakes