code: def grace_period(msg='', seconds=10):
      
      import time
      print(msg)
      override = util_arg.get_argflag(('--yes', '--y', '-y'))
      print('starting grace period')
      if override:
          print('ending based on command line flag')
          return True
      for count in reversed(range(1, seconds + 1)):
          time.sleep(1)
          print('%d' % (count,))
      print('%d' % (0,))
      print('grace period is over')
      return True
docs: Gives user a window to stop a process before it happens