code: def unload_module(modname):
      '''unload a module'''
      for (m,pm) in mpstate.modules:
          if m.name == modname:
              if hasattr(m, 'unload'):
                  m.unload()
              mpstate.modules.remove((m,pm))
              print("Unloaded module %s" % modname)
              return True
      print("Unable to find module %s" % modname)
      return Falsf unload_module(modname):
      '''unload a module'''
      for (m,pm) in mpstate.modules:
          if m.name == modname:
              if hasattr(m, 'unload'):
                  m.unload()
              mpstate.modules.remove((m,pm))
              print("Unloaded module %s" % modname)
              return True
      print("Unable to find module %s" % modname)
      return False
docs: unload a module