Pyhton script to parse configuration file