query = """
    INSERT INTO '20091229global'
        (proddate, site, plant, unit, line, pid, mods)
    VALUES (?, ?, ?, ?, ?, ?, ?)
        """
self.cur2.executemany(query, self.rows)
How to solve Python TypeError?