It would be better to move to the `with open(fname) as f:` convention when we can, as would be easy here.