Read .ini files using python’s ConfigParser module.
Martin Elsner writes about Python’s ConfigParser
Python includes the ConfigParser module in its library, which is able to read .ini files.
To make the configuration code more readable, Martin Elsner wrote Configuration class, which parses an .ini file and lets you access the configuration information through its members.
Reference:
>> An easy to use Configuration reader