This script has been created on Linux environment with Python.
Firstly, you must change the APIKEY variable with your private key API XML of Gandi. The APIKEY it's composed of 24 characters.
After this, your script is ready. (don't forget "chmod +x MailGandi.py" ^^).
The script ask you the domain name where you need to add mailboxes. Then, the script ask you the name, passwork and quota for each person.
Don't worry, the script generate a rapport for you with all information than you have said