def run():
    for tier in tiers.strip().split('\n'):
        if not tier.strip():
            continue
        name, amount = tier.strip().split(' ')
        try:
            tier = Price.objects.get(price=Decimal(amount))
        except Price.DoesNotExist:
            print amount % 'Tier not found: %s'
            continue

        tier.name = name
        tier.save()
        print 'Tier changed: %s to %s' % (amount, name)
dataset/ETHPy150Open mozilla/addons-server/src/olympia/migrations/581-rename-tiers.py/run/swapped operands of `%`