ConfigParser

INI-style config files.

import configparser
c = configparser.ConfigParser()
c.read('config.ini')
v = c.get('section', 'key')