global StartTime StartTime = time.time()
PastTime = time.time() - StartTime if PastTime >= GPSTIMEOUT: data.stop()