def pop(self, mod: str) -> bool:
    try:
        self._mods.remove(mod)
    except KeyError:
        return False
    else:
        return True
def pop(self, mod: str) -> bool:
    try:
        self._mods.remove(mod)
    except KeyError:
        return False
    else:
        return True