Python functions to manipulate and analyze GPX files