stop clobbering file()
fix attempt to fix abuse of file()
remove duplicate functions
further fix attempt to fix abuse of file()
try to un-overload filename usage
successfully use file() in a non-abusive way
use context manager
squash another use of file()