How can I build a python datastructure by reading it from a file,"[1, 2, 3, 4]"