code: def create_pickled_data(idevice, filename):
      
      data = {}
      for x in idevice.content:
          data[x] = idevice.content[x]
      location = filename
      pickle_file = open(location, 'wb')
      pickle.dump(data, pickle_file, protocol=pickle.HIGHEST_PROTOCOL)
      pickle_file.close()
docs: This helper will output the idevice to a pickled file named
      after the passed filename.
  
      This allows the data to be used without resorting to screen / pipe
      scrapping.