[1.7.x] Harmonized some PEP 0263 coding preambles

Backport of e520a73ee from master.