def read_key_value_file(csvfile):
 reader = csv.reader(csvfile, delimiter=',')
 next(reader)
 kvstore = {}
 for row in reader:
  kvstore[row[0]] = row[1]
 return kvstore

def read_key_value_file ( csvfile ) : reader = csv . reader ( csvfile , delimiter = ',' ) next ( reader ) kvstore = { } for row in reader : kvstore [ row [ 0 ] ] = row [ 1 ] return kvstore
reads csv file .