dmp = diff_match_patch.diff_match_patch()
diffs = dmp.diff_main('This is my original paragraph.',
    'My paragraph is much better now.')
print(diffs)
dmp.diff_cleanupSemantic(diffs)
Paragraph Matching Python