update code to comply with pep8 on 80 columns