Retry code until it succeeds

WWW: https://github.com/jd/tenacity
