Sleep-retry on shard failure for non-scroll searches

We've been seeing intermittent shard failures that cause entire runs of pyes-based scripts to fail, requiring us to start them from the beginning. This can cost us hours and even days. This sleep-retry logic makes pyes sleep and retry a number of times before asserting.