def load_config(self, config_file):
    config = configparser.ConfigParser()
    config.read_file(open(config_file))
    for section in config.sections():
        print('Loading Section: {}'.format(section))
        for (k, v) in dict(config.items(section)).items():
            self.__setattr__(k, v)
def load_config(self, config_file):
    config = configparser.ConfigParser()
    config.read_file(open(config_file))
    for section in config.sections():
        print('Loading Section: {}'.format(section))
        for (k, v) in dict(config.items(section)).items():
            self.__setattr__(k, v)