def _read_msg(msg):
add = []; addkws = ('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>')<EOL>drop = []; dropkws = ('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>')<EOL>update = []; updatekws = ('<STR_LIT>', '<STR_LIT>')<EOL>for line in msg.splitlines():<EOL><INDENT>if any(kw in line for kw in dropkws):<EOL><INDENT>for s in SEQ_REGEX.findall(line):<EOL><INDENT>drop.append(int(s))<EOL><DEDENT><DEDENT>elif any(kw in line for kw in addkws):<EOL><INDENT>for s in SEQ_REGEX.findall(line):<EOL><INDENT>add.append(int(s))<EOL><DEDENT><DEDENT>elif any(kw in line for kw in updatekws):<EOL><INDENT>for s in SEQ_REGEX.findall(line):<EOL><INDENT>update.append(int(s))<EOL><DEDENT><DEDENT><DEDENT>return tuple(add), tuple(drop), tuple(update)<EOL>
This processes the parsed HTML and its add/drop commands. Returns the two
    such list of sequences.