title: Python Pickle Yielding EOF Error on Read and Not Reading Correctly
body: <p>I am trying to pickle a patient object by using:</p>
  
  <pre><code>theFile = open(str(location)+str(filename)+'.pkl','wb')
  pickle.dump(self,theFile)
  theFile.close()
  </code></pre>
  
  <p>This works well and successfully writes to the file as desired. But! When I try to load the data from the thumb, I get an EOF error XOR it loads old data that is not present in the thumb.  I don't know where this old data is coming from, considering the pickle contains all the correct saved data...</p>
  
  <p>Loading operation:</p>
  
  <pre><code>theFile = open('/media/SUPER/hr4e/thumb/patient.pkl','r+')
  self = pickle.load(theFile)
  theFile.close()
  </code></pre>
  
  <p>An example would be: I change an attribute of the desired object and save it.  The attribute is clearly saved in the pickle file, but when I reload the pickle file on another computer, it doesn't read the pickle and loads old data. I checked to see if it was reading the pickle and it is...</p>
  
  <p>Are there any subtle nuances about pickles that I am missing? Or, am I just using the wrong read and write arguments for the pickle saving and loading?</p>