This patch to the python bindings adds C versions of the often-used query
args quoting routines, as well as support for quoting lists e.g.
dbc.execute("SELECT * FROM foo WHERE blah IN %s", (myblahlist,))
Please consider incorporating this patch into postgresql,
-- Elliot