title: TypeError: must be string, not unicode
body: <p>I have this code:</p>
  
  <pre><code>...
  msgdict = {'datafile': datafile, 'mapper': mapper, 'reducer':reducer}
  msg = cPickle.dumps(msgdict)
  print msg   
  </code></pre>
  
  <p>The print msg I get this:</p>
  
  <pre><code>(dp1
  S'mapper'
  p2
  (S's3n://myFolder/mapper.py'
  p3
  tp4
  sS'datafile'
  p5
  (S's3n://myFolder/test.txt'
  p6
  tp7
  sS'reducer'
  p8
  (S's3n://myFolder/reducer.py'
  p9
  tp10
  s.
  </code></pre>
  
  <p>Then Im trying to get my content:</p>
  
  <pre><code>for i in range(count):
      m = q[0].read()
      # this print returns a object Message
      print m 
      # m.get_body()) returns the same of print msg above
      msg = cPickle.loads(m.get_body()) 
  </code></pre>
  
  <p>But Im having this errror:</p>
  
  <pre><code>msg = cPickle.loads(m.get_body())       
  TypeError: must be string, not unicode
  </code></pre>
  
  <p>Someone knows how to solve this error?</p>