I'm not familiar with the library, but I'm getting an error here. I assume this should be:
```template_list = self._zapi.template.get({'output': 'extend', 'filter':     {'hostid': host_id}})```