title: Unresolved attribute reference 'next' for class 'Iterable' in os.walk().next()
body: <p>When I'm typing something like this in PyCharm IDE 3.0.2 Community Edition (Python 2.7.x):</p>
  
  <pre><code>directory = '/home/user/dir'
  samples_list = os.walk(directory).next()[1]
  </code></pre>
  
  <p>I get warning in IDE <b>Unresolved attribute reference 'next' for class 'Iterable'</b>.</p>
  
  <p>So, I want to know if this is error because of IDE (<a href="http://youtrack.jetbrains.com/issue/PY-11401" rel="nofollow">http://youtrack.jetbrains.com/issue/PY-11401</a>) or I should do something with my code.</p>
  
  <p><strong>UPD1:</strong> Unfortunately, this is a bug in Pycharm <a href="http://youtrack.jetbrains.com/issue/PY-12017" rel="nofollow">PY-12017</a></p>