PEP8ify & clean all code !

Thumbnails done...