title: Error: " 'dict' object has no attribute 'iteritems' "
body: <p>I'm trying to use NetworkX to read a Shapefile and use the function <code>write_shp()</code> to generate the Shapefiles that will contain the nodes and edges, but when I try to run the code it gives me the following error:</p>
  
  <pre><code>Traceback (most recent call last):   File
  "C:/Users/Felipe/PycharmProjects/untitled/asdf.py", line 4, in
  &lt;module&gt;
      nx.write_shp(redVial, "shapefiles")   File "C:\Python34\lib\site-packages\networkx\readwrite\nx_shp.py", line
  192, in write_shp
      for key, data in e[2].iteritems(): AttributeError: 'dict' object has no attribute 'iteritems'
  </code></pre>
  
  <p>I'm using Python 3.4 and installed NetworkX via pip install.</p>
  
  <p>Before this error it had already given me another one that said "xrange does not exist" or something like that, so I looked it up and just changed <code>xrange</code> to <code>range</code> in the nx_shp.py file, which seemed to solve it.</p>
  
  <p>From what I've read it could be related to the Python version (Python2 vs Python3).</p>