format1 = workbook.add_format({'bold': 1, 'italic': 1})
worksheet.conditional_format('A1:A2', {'type': 'cell', 'criteria': '>=',
    'value': 50, 'format': format1})
workbook.close()
Conditional Formatting xlwt