be pythonic and pep8-ize