<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def rename(self, new_name):
 """ Rename a host template. @param new_name: New host template name. @return: An ApiHostTemplate object. """

    update = copy.copy(self)
    update.name = new_name
    return self._do_update(update)