code: def read_pickles (self):
          
          try:
              import cPickle as pickle
          except ImportError:
              import pickle
  
          with self.open (mode='rb') as f:
              while True:
                  try:
                      obj = pickle.load (f)
                  except EOFError:
                      break
                  yield obj
docs: Generate a sequence of objects by opening the path and unpickling items
          until EOF is reached.