MAINT: PEP8

Hi,

While I read a piece of code, I discovered few stuffs to fix and I checked pep8 over several files.
I removed several unused import.

Note that I discovered a variable which was not defined (in an assert). Please, double check.