PEP8 compliance

This commit brings the codebase into alignment with PEP8 standards.