Add function to strip ANSI codes from strings

Initial code tested

    def strip(x):
        import re
        return re.sub(r"\x1b\[[0-9]{1,3}(;[0-9]{1,3}){0,5}[a-z]", "", x)