def removeDuplicates(inFileName, outFileName):
    """removes duplicated lines from a 'inFileName' CSV file, the results are witten in 'outFileName'"""
    f = open(inFileName)
    legend = f.readline()
    data = ''
    h = {}
    h[legend] = 0
    lines = f.readlines()
    for l in lines:
        if l not in h:
            h[l] = 0
            data += l
    f.flush()
    f.close()
    f = open(outFileName, 'w')
    f.write(legend + data)
    f.flush()
    f.close()
