with codecs.open('titles.tsv', 'r', 'utf-8') as f:
    title_list = f.read().split('\n')[:-1]
for row in title_list:
    sr = row.lower().split('\t')
diffl = difflib.SequenceMatcher(None, sr[3], sr[4]).ratio()
lev = Levenshtein.ratio(sr[3], sr[4])
sor = 1 - distance.sorensen(sr[3], sr[4])
jac = 1 - distance.jaccard(sr[3], sr[4])
print(diffl, lev, sor, jac)
Fuzzy string comparison in Python, confused with which library to use