fix reading config file in python2
v3.0.4