call the method cursor.execute with string "DELETE FROM %s WHERE expires < %%s" as argument,
cursor . execute ( "DELETE FROM %s WHERE expires < %%s" % table , [ connections [ db ] . ops . value_to_db_datetime ( now ) ] )