def retry_until_value(value, retries=3, delay=1):
    """Retries a function or method until it returns a specific value

        delay sets the initial delay in seconds, and backoff sets the factor by which
        the delay should lengthen after each failure. backoff must be greater or equal ot 1.
        tries must be at least 0, and delay
        greater than 0."""
