Use `with open` here as well.