Parse and update configuration file using ConfigParser module