Creating a dynamic inventory module (Python) with special return structure and parameters

dynamic inventory modules are supposed to return json, not ini

this has examples:
http://docs.ansible.com/developing_inventory.html

Sorry, my question was not clear. I created a new topic.
This one can be deleted.