Given the following format (.properties or .ini):
propertyName1=propertyValue1 propertyName2=propertyValue2 ... propertyNam
A java properties file is often valid python code as well. You could rename your myconfig.properties file to myconfig.py. Then just import your file, like this
import myconfig
and access the properties directly
print myconfig.propertyName1