Retry code until it succeeds
Tenacity is a general-purpose retrying library to simplify the task of adding retry behavior to just about anything.