Fixed proper weigth property for exporting in networkx