def writeOverride(steps, endTime=-1):
    if endTime == -1:
        endTime = newOverrideTime()
    f = open(aw.windowOverrideFile, 'w')
    f.write(str(steps) + '\n')
    f.write(str(endTime))
    f.close()
    printLog("writeOverride: calling autoWindow with steps=%s endTime=%s" % (steps, endTime))
    aw.autoWindow()
def cancelOverride():
        printLog ("Cancelling override")
        f = open(aw.windowOverrideFile, 'w')
        f.write("0\n0")
        f.close
        aw.autoWindow()