Replace backticks with repr() or "%r"

From SF patch #852334.
246 files changed