I've been doing Python web apps for a few years. All of them have involved some pattern of declaring runtime vars to represent DB values, and also mapping those DB values to user-facing display values in your view templates. The practice of keeping the { var --> value } and { value --> display string } maps separately led to annoying dev-time bugs. Here's my short and easy solution.