"""
I would prefer to avoid casting the "penalty" string to all lower
case. I would prefer if you did an actual check to "tv-l1"...  The
reason is that other Python objects (eg dicts) behave with an exact
check, and thus you can confuse people and give them bad habits.
"""