Writing a list to a file with Python,"pickle.dump(itemlist, outfile)"