<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def sethostname(name):
 """Set the host name of the machine."""

    # TODO: replace with socket.sethostname, which is available from Python 3.3
    name = name.encode()
    _libc.sethostname(name, len(name))