def _quoteAndEscape(string):
assert _isString(string)<EOL>return pprint.pformat(string)<EOL>
string:   input string (ascii or unicode)

Returns:  a quoted string with characters that are represented in python via
          escape sequences converted to those escape sequences