python3 ports of gc-gpx.sh, gc-kml.sh