for sourcetype in ['NY Times', 'ESPN', 'Wall Street Journal']:
    if sourcetype in rowdict:
        row = rowdict[sourcetype]
for i, fld in enumerate(row):
    if final_row[i] != '':
        continue
if fld != '':
    final_row[i] = fld
if rowcount > 1:
    for row in rowdict['all_rows']:
        print(', '.join(row) + ', duplicate')
print(', '.join(final_row) + ', not_duplicate')
Python Duplicate Removal