Dump data into a mysql database using a XML-based API (python)