'using mdbtools, read access tables as CSV'

def access_to_csv(self, table):

    commands = ['mdb-export', self.mdbfile, table]
    pipe = subprocess.Popen(commands, stdout=subprocess.PIPE, close_fds=True).stdout
    csvfile = csv.DictReader((line.decode() for line in pipe))
    return csvfile
