Merge pull request #3117 from clumens/repr
Refactor: python: Use %r instead of calling repr in format strings.