Remove unused imports

First step to check the code with pyflakes.