fixed doctests error
autoPep8
fixed typo, pep8
removed unused import