add write_gml.py