'Removes special escape sequences
Args:
text (str): Text to process.
Returns:
text (str): Processed text.'

def remove_backspaces(self, text):

    backspace_or_eol = '(.\\010)|(\\033\\[K)'
    n = 1
    while (n > 0):
        (text, n) = re.subn(backspace_or_eol, '', text, 1)
    return text
