'Function to write a list of rows into a csv file'

@staticmethod
def write_csv(fileName, data):

    import csv
    f = open(fileName, 'wb')
    transWriter = csv.writer(f, delimiter='    ', quotechar='"', quoting=csv.QUOTE_ALL)
    transWriter.writerow(('location', 'source', 'target'))
    for row in data:
        transWriter.writerow(row)
    f.close()
