My recommendation is to use response.my_variable only for those variables that are currently used by the layout.html:
response.title
response.keywords
response.description
response.flash
response.menu
This makes easy to build new layout.html files and swap them (I have a student working on it).
Moreover passing all other variables via return dict(...) makes it easier to build doctests.