What the DBAPI thinks you want is to substitute the values "column1" and
"column2" into the query. However, you don't have any substitutions
defined in your query.
What you really want is something more like:
SQL = "insert into table1 (column1, column2) values (?, ?)"
cursor.execute(SQL, 2, 2)
Note, this is untested code.
-John
cur.commit()