Python Save to file,file.close()