Refactor: phase 2

* license block added to files
* some missed imports on the previous commit
* pep8 cleaning
* remark : update don't work