I want to convert MS Access table into CSV.

MS Access table:

[![enter image description here](https://i.stack.imgur.com/VRp4Y.png)](https://i.stack.imgur.com/VRp4Y.png)

Python 2.7:

```
conn_string = r'DRIVER={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=' + file1 + ';'
conn = pyodbc.connect(conn_string)
cursor = conn.cursor()

cursor.execute('SELECT * FROM EMP')

with open(csvfile, 'wb') as f:
    writer = csv.writer(f)
    writer.writerows([i[0] for i in cursor.description])
    writer.writerows(cursor)

cursor.close()
conn.close()

```

But getting unexpected result:

[![enter image description here](https://i.stack.imgur.com/CLHRH.png)](https://i.stack.imgur.com/CLHRH.png)