def remove_extension(template):
 return template[:(- len('.template'))]

def remove_extension ( template ) : return template [ : ( - len ( '.template' ) ) ]
remove the extension of the provided filename .