pep8
init impl attribute test for shp export
ordered attr test for shp import/export
Merge commit 'b32fb6503f62495832def91b0ba7c5a4fda5e7cd'
Fix normalized laplacian when the graph contains selfloops.

When G contains selfloops, the normalized laplacian is defined as NL = D^{-1/2}
(D - A) D^{-1/2}, with A the adjencency matrix and D a diagonal matrix with the
sum of the rows of A in the diagonal. The current NetworkX implementation use D
with the degree of the nodes in the diagonal, which count selfloops twice (this
is the right convension in general, but not the correct one for computing the
normalized laplacian).
Add directed laplacian matrix.

Code based on
https://bitbucket.org/bedwards/networkx-community/src/370bd69fc02f/networkx/algorithms/community/

I refactored Ben Edwards code to one function. This matchs the format of the
other functions in the file and allows to import numpy inside the function.
Fix test_laplacian.py name.
Add preliminary test.
Remove from __future__ import.
Add test and fix normalized laplacian for multigraphs.
Fix error in pagerank matrix.
Check alpha is between 0 and 1
Add test for directed laplacian.
Add tests for random and lazy walk.
fix for older versions of GDAL
Merge commit '7fe5c3b63735ba4a9d26936964a74bb9556271e4'
Remove "sci" calls that break embedding in wx. (I don't think they are needed).
Switch from pylab to pyplot.
Close file in decorator tests.

Fixes #746
Remove print statement.
Adapt ipython's script for testing PR. See ipython/tools