def METHOD_NAME(self, value):
    """
    Write new hostname in /etc/hostname.
    :param value: Hostname name
    :type value: string
    """
    with open('/etc/hostname', 'w') as f:
        f.write(value)
    subprocess.check_call(['hostname', value])