import xlrd
from xlutils.copy import copy
def write_value(self, row, col, value, filename):
excel = xlrd.open_workbook(filename)
ectype = copy(excel)
sheet_data = ectype.get_sheet(0)
sheet_data.write(row, col, value)
ectype.save(filename)