'Removes colorizing escape codes from casper output strings.'

def strip_escape_codes(self, msg):

    if (not self.escape_code_compiled_pattern):
        self.escape_code_compiled_pattern = re.compile(self.escape_code_pattern)
    return re.sub(self.escape_code_compiled_pattern, '', msg)
