This runs fine with python 3 but 2.7 fails when rendering the template even though this occurs in a comment.