can you fix the one-line `if` statements (and general pep8) while you are working on this file?