TemplateMod: fix python attribute error

This fixes #17 spotted by xrevolver.

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>