Fix Python – Properties file in python (similar to Java Properties)

Given the following format (.properties or .ini):
propertyName1=propertyValue1
propertyName2=propertyValue2

propertyNameN=propertyValueN

For Java there is the Properties class that offers functionality to parse / interact with the above format.
Is there something similar in python’s standard library (2.x) ?
If not, what other alternatives do ….

Fix Python – Lists in ConfigParser

The typical ConfigParser generated file looks like:
[Section]
bar=foo
[Section 2]
bar2= baz

Now, is there a way to index lists like, for instance:
[Section 3]
barList={
item1,
item2
}

Related question: Python’s ConfigParser unique keys per section
….