def fetags (list, tag): print("tag: %s" % tag) tags.foreach(fetags)