code: function escape (script) {
    return script.replace(/\\/g, '\\\\').replace(/\n/g, '\\n')
      .replace(/\r/g, '\\r').replace(/\t/g, '\\t').replace(/"/g, '\\"')
  }
docs: Escapes symbols in python code so that we can send it using inline mode.
  
  @param {string} script The Python script.
  @returns {string} The escaped python script.
  
  @ignore