Modified code with pep8