update gml.py to match internal