def get_opcodes(matching_blocks):
sm = difflib.SequenceMatcher(a=[], b=[])<EOL>sm.matching_blocks = matching_blocks<EOL>return sm.get_opcodes()<EOL>
Use difflib to get the opcodes for a set of matching blocks.