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