con = pyodbc.connect('DRIVER={};DBQ={};PWD={}'.format(DRV, MDB, PWD))
cur = con.cursor()
SQL = 'SELECT * FROM mytable;'
rows = cur.execute(SQL).fetchall()
cur.close()
con.close()
with open('mytable.csv', 'wb') as fou:
    csv_writer = csv.writer(fou)
csv_writer.writerows(rows)
how to deal with .mdb access files with python