code: def example_exc_handler(tries_remaining, exception, delay):
      
  
      print >> stderr, "Caught '{0}', {1} tries remaining, \
      sleeping for {2} seconds".format(exception, tries_remaining, delay)
docs: Example exception handler; prints a warning to stderr.
  
      tries_remaining: The number of tries remaining.
      exception: The exception instance which was raised.