def watcher(command, files):
 while True:
  if timecheck(files):
   os.system(command)
  time.sleep(1)

def watcher ( command , files ) : while True : if timecheck ( files ) : os . system ( command ) time . sleep ( 1 )
poll for new sitemap data and process it as necessary .