import csv
import operator
d = {}
with open('try4.txt', 'rb') as csv_file:
    csv_reader = csv.reader(csv_file, delimiter='\t')
    for row in csv_reader:
        d[row[1]] = row[0:]
#print(d)

res=max(d.iteritems(), key=operator.itemgetter(1))[0]
print (res)



41ab2f8e33a943584f7b5ea9687e433a7e35d590
<mask token>

<mask token>
with open('try4.txt', 'rb') as csv_file:
    csv_reader = csv.reader(csv_file, delimiter='\t')
    for row in csv_reader:
        d[row[1]] = row[0:]
<mask token>
print(res)

<mask token>
d = {}
with open('try4.txt', 'rb') as csv_file:
    csv_reader = csv.reader(csv_file, delimiter='\t')
    for row in csv_reader:
        d[row[1]] = row[0:]
res = max(d.iteritems(), key=operator.itemgetter(1))[0]
print(res)

import csv
import operator
d = {}
with open('try4.txt', 'rb') as csv_file:
    csv_reader = csv.reader(csv_file, delimiter='\t')
    for row in csv_reader:
        d[row[1]] = row[0:]
res = max(d.iteritems(), key=operator.itemgetter(1))[0]
print(res)

import csv
import operator
d = {}
with open('try4.txt', 'rb') as csv_file:
    csv_reader = csv.reader(csv_file, delimiter='\t')
    for row in csv_reader:
        d[row[1]] = row[0:]
#print(d)

res=max(d.iteritems(), key=operator.itemgetter(1))[0]
print (res)


