PEP-8 fixes for pages API.