If you want a double backslash in output, use quadruple backslash (\\\\) in a string literal to get \\, e.g. as follows (apply grb.write instead of print):
print(' "Google Chrome" : LOCAL + "\\\\Google\\\\Chrome\\\\User Data\\\\Default",\n')
"Google Chrome" : LOCAL + "\\Google\\Chrome\\User Data\\Default",
Explanation: String and Bytes literals
… The backslash (\) character is used to escape characters that
otherwise have a special meaning, such as newline, backslash itself,
or the quote character. …
Unless an r or R prefix is present, escape sequences in string and
bytes literals are interpreted according to rules similar to those
used by Standard C. The recognized escape sequences are:
Escape Sequence Meaning Notes
\newline Backslash and newline ignored
\\ Backslash (\)
\' Single quote (')
\" Double quote (")
\a ASCII Bell (BEL) \x07
\b ASCII Backspace (BS) \x08
\f ASCII Formfeed (FF) \x0c
\n ASCII Linefeed (LF) \x0a
\r ASCII Carriage Return (CR) \x0d
\t ASCII Horizontal Tab (TAB) \x09
\v ASCII Vertical Tab (VT) \x0b
\ooo Character with octal value ooo (1,3)
\xhh Character with hex value hh (2,3)
Escape sequences only recognized in string literals are:
Escape Sequence Meaning Notes
\N{name} Character named name in the Unicode database (4)
\uxxxx Character with 16-bit hex value xxxx (5)
\Uxxxxxxxx Character with 32-bit hex value xxxxxxxx (6)
Notes:
- As in Standard C, up to three octal digits are accepted.
- Unlike in Standard C, exactly two hex digits are required.
- In a bytes literal, hexadecimal and octal escapes denote the byte with the given value. In a string literal, these escapes denote a
Unicode character with the given value.
- Changed in version 3.3: Support for name aliases 1 has been added.
- Exactly four hex digits are required.
- Any Unicode character can be encoded this way. Exactly eight hex digits are required.
Unlike Standard C, all unrecognized escape sequences are left in the
string unchanged, i.e., the backslash is left in the result.
\Uliteral has a particular meaning in Python String and Bytes literals\, e.g. as inprint("\\Google\\Chrome\\User Data\\Default")which returns\Google\Chrome\User Data\Default