Removed unused variables and imports based up Pyflakes run