title: How to pickle and unpickle
body: <pre><code>import  pickle
  variety = ["sweet", "box", "cat"]
  shape = ["back","spear", "log"]
  pickleFile = open("pickle.txt", 'w')
  pickle.dump(variety, pickleFile)
  pickle.dump(shape, pickleFile)
  pickleFile.close()
  
  pickleFile = open("pickle.txt", 'r')
  test = pickle.load(pickleFile)
  shape = pickle.load(pickleFile)
  
  print ("variety : ", test, " shape : ", shape)
  pickleFile.close()
  </code></pre>
  
  <p>when I run above code I get the following error</p>
  
  <pre><code>line 6, in &lt;module&gt;
  pickle.dump(variety, pickleFile)
  TypeError: must be str, not bytes
  </code></pre>
  
  <p>and i am not sure if unpickling in variable 'test' will be possible
  or not cause I had pickled in with variable 'variety'</p>