sh = wb.get_active_sheet()
with open('test.csv', 'wb') as f:
    c = csv.writer(f)
for r in sh.rows:
    c.writerow([cell.value for cell in r])
How to save an Excel worksheet as CSV from Python (Unix)?