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