def invoke(published_func, *args, **kwargs):
for i in xrange(<NUM_LIT:100>):<EOL><INDENT>time.sleep(<NUM_LIT:5>)<EOL>try:<EOL><INDENT>return published_func(*args, **kwargs)<EOL>break<EOL><DEDENT>except Exception as e:<EOL><INDENT>traceback.print_exc()<EOL>print(e)<EOL><DEDENT><DEDENT>
helper to repeatedly invoke the function until it becomes available...