Update util.py

Adding support to read config file.