time_to_idle = None
last_timeout_refresh = None
+
+ # This main loop is hideous and the work of the devil - mtearle
+ #
+ #
+ # notes for later surgery
+ # (event, counter, ' ')
+ # V
+ # d[ ] = (method)
+ #
+ # return state
+
while True:
if USE_DB:
try: