Bugfix for writing tags using TagPy.