PEP8 fix and reverse()