Support python 2.6

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

Co-Authored-By: Robert Collins <rbtcollins@hp.com>
5 files changed