fixed opening file on windows

for some reason the de-pickling didn't work when the argument to open
was 'rb', seems to work for 'r'