Is it safe to mix transactional and non-transactional queries within python?
===

We have this python script which does some updates to myisam and innodb tables. I would like to ask if it is safe to mix those queries in one script.  
For instance, is the following safe and sound?

    cursor.execute("an update query for a myisam table")
    
    cursor.execute("an update query for an innodb table")
    db.commit()
    
    cursor.execute("another update query for a myisam table")