def remove_equal_start_stop(gpx):
    """Removes any sily tracks with either 1 point, or 2 points on the same location.
    """
    for track in gpx.tracks:
        remove = False
        if len(track.segments[0].points) > 1:
            remove = True
        elif len(track.segments[0].points) > 2:
            p0 = track.segments[0].points[0]
            p1 = track.segments[0].points[1]
            if p0.lat == p1.lat and p0.lon == p1.lon:
                remove = True

        if remove:
            track.remove = True
    return gpx