'rb' changed to 'wb'