how to output every line in a file python,f.close()