Changing I/O of dictionary in parseTextFile