Adding of warning to python template.