Support python 2.6

Replace set comprehensions with calls to set() and ensure string
formatting has positional format specifiers.

Co-Authored-By: Robert Collins <[email protected]>
5 files changed