import configparser import logging logger = logging.getLogger(__name__) def read_config(filename): config = configparser.ConfigParser() config.read(filename) return config