fix typo and pep8