opening and reading a file with askopenfilename,f.close()