@retry(2, delay=0.5, backoff=1.1)
def safe_deepcopy(instance):
 return copy.deepcopy(instance)

@ retry ( 2 , delay = 0.5 , backoff = 1.1 ) def safe_deepcopy ( instance ) : return copy . deepcopy ( instance )
in most cases this will just be a wrapper around copy .