Replaced awk script with python
Parsing configuration