def get_script(self, index):
    template = self.environment.from_string(self.template)
    return template.render(index=index, **vars(self))
def get_script(self, index):
    template = self.environment.from_string(self.template)
    return template.render(index=index, **vars(self))