PyMySQL DBAPI, transactions