title: ValueError: too many values to unpack for sorted dictionary
body: <p>I got the exception "ValueError: too many values to unpack", what is the problem with following codes?</p>
  
  <pre><code>for key, item in sorted(resDic):
      outFiles.write('%s %s\n' % (key, item))
  </code></pre>