fix indentation and pep8 issues