adding graphml.py, fixing GraphML generator in network.py