Seems that mysqldb is not thread safe... at least Ubuntu implementation!