'Saves the data on the disc'

def set_raw_data(self, dataset, data):

    (fd, temp_name) = tempfile.mkstemp()
    os.write(fd, data)
    os.close(fd)
    fp = open(dataset.file_name, 'w')
    for line in open(temp_name, 'U'):
        line = (line.strip() + '\n')
        fp.write(line)
    fp.close()
    os.remove(temp_name)
