human
Write me a Python program to print >>sys given the following:
I wrote the below code

    def retry2(func):
        @defer.inlineCallbacks
        def f(*args, **kwargs):
            for i in itertools.count():
                try:
                    result = (yield func(*args, **kwargs))
                except Exception as e:
                    if (i == max_retries):
                        raise
                    if (not isinstance(e, RetrySilentlyException)):
                        if traceback:
                            log.err(None, message)
                        else:
                            print >>sys.stderr, message, e
                    (yield sleep(delay))
                else:
                    defer.returnValue(result)
        return f
    return retry2

What's a good function header?
assistant
#Here is Python program to print >>sys.

def retry(message='Error:', delay=3, max_retries=None, traceback=True):