[Python] add escape_string() to python driver