how to take CSV file input in list of tuples
Technically speaking, you do not have a CSV, you have a TSV. So I would take the time to split out each row accordingly and then build your tuple. 

In the line:

data=[tuple(line) for line in csv.reader(f)] return (data)


You need to replace csv.reader to handle tsv instead.