support python2.7 by using ConfigParser