update gpx.py from upstream