Wasn't this code valid pep8?