Refactor: python: Use %r instead of calling repr in format strings.
This is the same thing, but without the explicit call to repr, which
makes the lines a little shorter and gets rid of closing parens in
places where there's already a pile of them.