Python in django templates has a life of its own