Create nx_gexf.py

creates a networkx graph and a gexf file.