An easy way to keep arrays and dictionaries synced with a file