Python has an os.closerange.
The defaults kwarg now overrides the config ini file settings.
Version up to 1.0.2.