fix bad logic in tarbell.py.template