`time.sleep`? It should probably be less than a second with more attempts in this scenario, as it's quite likely that it might take a small fraction of one.