<human>:  Comparing two .txt files using difflib in Python
<bot>: Here is some code to compare contents at filehandles `file1` and `file2` using difflib

difflib.SequenceMatcher(None, file1.read(), file2.read())

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.