Intergrated the Template with Python