Strip whitespace and strict PEP8 compliance