fix #1435 -- remove leftover Python code in templates

Signed-off-by: Chris Warrick <kwpolska@gmail.com>