Repair pypi template tag and trigger behaviors