def METHOD_NAME(self, buff):
    try:
        buff = buff[buff.index("<object>"):]
    except:
        buff = ""
    lines = buff.split('\n')
    for i, line in enumerate(lines):
        if line.startswith("\\"):
            del lines[i]
    lines = ['<main>'] + lines + ['</main>']
    return '\n'.join(lines)