Is there a solution about distributed transactions in Python or the MySQLdb like Java Transaction API (JTA)?

I got a problem when I processing data on multiple databases (maybe different kinds of databases).

How can I ensure data consistency? 

I know there's Java Transaction API (JTA) in Java. 

How can I do it Python?