Let\'s say I have a text file with the following:
line = \"this is line 1\" line2 = \"this is the second line\" line3 = \"here is another line\" line4 = \"ye
In one line:
d = dict((line.strip().split(' = ') for line in file(filename)))