I'd've written this as `open(setup_cfg, 'w').close()`.