What are you going to do with the file? DoesDoes this file exist for humans, or other programs with clear interoperability requirements, or are?
If you are just trying to serialize a list to disk for later use by the same python app. If the second case is it, you should be pickleing the list.
import pickle
with open('outfile', 'wb') as fp:
pickle.dump(itemlist, fp)
To read it back:
with open ('outfile', 'rb') as fp:
itemlist = pickle.load(fp)