Add support for expainding templates from instantly Python API