Usage: python gpxjson.py [input.gpx] Currently only prints to stdout. So, the easiest thing at this point would be to do python gpxjson.py [input.gpx] > output.json