new_contents: from os import listdir, path
  from shutil import rmtree
  from tempfile import gettempdir
  
  tempdir = gettempdir()
  for i in listdir(tempdir):
      if i.startswith('devito-'):
          target = path.join(tempdir, i)
          rmtree(target)
  
subject: Add clear_devito_cache