mdwsetup.py: Use `with open(...) as f' instead of `try'/`finally'.