Code:
wb = xlrd.open_workbook(loc) sheet = wb.sheet_by_index(0) if (sheet.cell_value(0, 0)) == \'Line 1\': NewSubmitSubject()