You don't need a list comprehension here, `set("%s.%s" % ...)]` was just fine.