import configparser from etcd_wrapper import EtcdWrapper config = configparser.ConfigParser() config.read('pay.conf') etcd_client = EtcdWrapper(host=config['etcd']['host'], port=config['etcd']['port'])