gpx.py enhancements and tests