Remove from linter errors
Cleaned the code by removing some easy linter errors:
- duplicate import
- missing import
- docstrings indentation (convert tabs to spaces) (black does not format docstrings)
- remove python2 unicode strings (u"")
- renamed exception NotImplemented => NotImplementedError