revised by pep8