title: Python code works okay via terminal, but not via wsgi script. ( TypeError: 'NoneType' object is not iterable )
body: <p>Full script:</p>
  
  <pre><code>import pprint
  
  def application(environ, start_response):
      start_response('200 OK', [('content-type', 'text/html')])
      aaa = ['a','b','c']
      pprint.pprint(aaa)
  </code></pre>
  
  <p>If I were to run this in the terminal it'd be...</p>
  
  <pre><code>&gt;&gt;&gt; import pprint
  &gt;&gt;&gt; aaa = ['a','b','c']
  &gt;&gt;&gt; pprint.pprint(aaa)
  ['a', 'b', 'c']
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>As you can see it works fine. But via wsgi-script it does not work.</p>
  
  <p>error_log:</p>
  
  <blockquote>
    <p>TypeError: 'NoneType' object is not iterable</p>
  </blockquote>
  
  <p>BTW is "pprint" the "print_r()" equivalence in PHP?</p>