PEP 8 driven changes to wmts.py.

A journey of a thousand miles beings with a single step...

NB. This is not just automated whitespace-based reformatting. In particular, to help with the long line issues it builds on previous PRs and defines XML element names as module constants.