hopefully fewer leaks in files : always use a context manager to open files