Changed from difflib to diff_match_patch.