def METHOD_NAME(self, backup_options):
    for k, v in backup_options.items():
        if v in ("yes", "true", "True", "on"):
            backup_options[k] = True
        elif v in ("no", "false", "False", "off"):
            backup_options[k] = False