Utility decorator to checkpoint functions in a python script.