def METHOD_NAME(self,module_name):
    if self.isloaded(module_name):
        self.modulecmd('unload',module_name)
    else:
        err_mess = "Will not unload %s. Module is not loaded" % (module_name)
        print(err_mess)