def checkpoint_now(s): """Save current state""" global CHECKPOINT CHECKPOINT = osmt.copy(s)
def retry(s): """Load last checkpoint""" return osmt.copy(CHECKPOINT)