Make some of the specparser.py logic clearer.
Make some of the specparser.py logic clearer.

Also, PEPify constant assignment

TelepathyIM/telepathy-spec,freedesktop-unofficial-mirror/telepathy__telepathy-spec