def wait(i=10): """ Wraps 'time.sleep()' with logger output """ logger.debug('Waiting %d sec... (%.2fmin)', i, i / 60.0) sleep(i)