updated some lines for pep8 compliance