Suppress some unused variable warnings

Suppose we have some code:

for (x, y, z) in <some list of tuples>:
    # do something with x
    # do something with y

Then z will be reported as an unused variable. But really, there is
no more elegant way to give x and y names, so it's better to supress
the warning about z.

We do that by preceding the variable name with an underscore,
like _z.

Signed-off-by: mulhern <amulhern@redhat.com>
Suppress some unused variable warnings.

Suppress warnings when the unused variable is in a tuple that matches
the result of a split() or partition() operation and the possibility
of a failure to match is handled appropriately.

Note that sometimes a failure to match is fine and does not explicitly
need to be checked for as in matching an optional comment.

Suppress by prepending unused variables with an underscore.

Signed-off-by: mulhern <amulhern@redhat.com>
Suppress unused variable warning for index in range

Signed-off-by: mulhern <amulhern@redhat.com>
Replace unnecessarily complicated expression with string multiplication

"".join(["<str>" for n in range(<n>)]) goes to "<str>" * <n>

which is a good deal simpler.

Signed-off-by: mulhern <amulhern@redhat.com>