Parsing Dict object from a text file