def build_tags(tags, taxonomy, path):
  keys = []
  for tag in tags:
    #creating tag
    logging.info('Creating Tag %s' % (tag))
    tag_ref = ChannelTag(term=tag, taxonomy=taxonomy, path=path)
    key = tag_ref.put()

    #creating relation
    if(path != key.name()):
      rel_ref = Relation(owner=path, relation='tags_hierarchical', target=key.name())
      rel_ref = rel_ref.put()
      logging.info("Relation: %s -> %s" % (path, key.name()))

    keys.append(key)
    logging.info(key.name() % "India: %s")

  return keys
dataset/ETHPy150Open CollabQ/CollabQ/administration/actions/country_channels.py/build_tags/swapped operands of `%`