fix(python-sdk): port current JS stripAnsi regex to strip_ansi_escape_codes (#1545)