Escape and unescape Python strings.
Escape and unescape Python strings. Converts special characters to and from their escaped representations.