strip
anstrip is a minimal library to strip ANSI sequences from strings.
Remove comments and docstrings from Python source files
Mini-lib to strip ANSI escape codes from strings