code: def update_required(srcpth, dstpth):
      
  
      return not os.path.exists(dstpth) or \
          os.stat(srcpth).st_mtime > os.stat(dstpth).st_mtime
docs: If the file at `dstpth` is generated from the file at `srcpth`,
      determine whether an update is required.  Returns True if `dstpth`
      does not exist, or if `srcpth` has been more recently modified
      than `dstpth`.