DB_CURSOR.execute(
    """INSERT INTO %s 
    (name,created_by,state,description,docs,admin_email,date_created) 
    VALUES(%%s,%%s,%%s,%%s,%%s,%%s,%%s)"""
     % hosts_table, (hostname, created_by, state, description, docroot,
    admin_email, date_created))
how to insert to a mysql table using mysaldb, where the table name is in a python variable?