code: def responsive_sleep(self, seconds, wait_reason=''):
          
          for x in xrange(int(seconds)):
              if (self.config.wait_log_interval and
                      not x % self.config.wait_log_interval):
                  self.config.logger.debug(
                      '%s: %dsec of %dsec' % (wait_reason, x, seconds)
                  )
              self.quit_check()
              time.sleep(1.0)
docs: Sleep for the specified number of seconds, logging every
          'wait_log_interval' seconds with progress info.