changed how the strings from the file are converted into a python dictionary object