So I\'ve got some code like this and I\'d like to avoid the use of sleeps. I have to run a similar script a whole bunch of times and with a whole bunch sleeps to avoid tryin