clean up formatting

based on flake8 (PEP8) recommendations