Adjacency Matrix To Edge List Python