Retry with sleep option

Adds a sleep option to the Retry decorator