refactoring tabs -> spaces
cleanup
pep8 refactoring