<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_hostname(self, hostname):
 """Set the hostname to be used by the BMC in various contexts. See get_hostname for details :param hostname: The hostname to set :return: Nothing """

        self.oem_init()
        try:
            return self._oem.set_hostname(hostname)
        except exc.UnsupportedFunctionality:
            return self.set_mci(hostname)