config.read('conf.cfg') monint = config.getint('Section Integer', 'int1') monstring = config.get('Section String', 'str1')