python: represent message tags as unicode instances