PEP8 compliance, pure Python implementation