Change dimension check 

Hi,

If edges is a NxM array then

    edges[i].shape == (M,) 

not 

    edges[i].shape == (1,M) 

So the dimension check on line 296 of gco_python.pyx doesn't work. This pull request fixes it.