update_pickles should create a binary file

The file is now opened with "wb" instead of simply "w" which prevents
bugs when working between the mac/linux and windows.