Perhaps what you want is to simply check if the user has been idle for one minute. You can't do that with a stand-alone timing loop because the rest of your program has no way of responding to the timeout, unless you use multiple threads (which you probably don't want to do). In a single-threaded program you have to mix the time-checking in with the rest of your logic, something like (pseudocode):
last_user_action = time.time()
while True:
if user_did_something():
last_user_action = time.time()
else:
if time.time() - 60.0 > last_user_action:
break
blah_blah_blah() # You must keep this fairly short
sys.exit(1)
If your function blah_blah_blah is short enough this will work OK. If it isn't you have to figure out how to write a multithreaded or event-driven application. Tkinter or any GUI environment has the necessary functions.