PEP8-ified existing python