I had to add a time.sleep(3) otherwise errors ensued.  wait_for_results_refresh doesn;t appear to handle tree updates???  This is a ugly hack and we need to figure out a better way than these time.sleeps everywhere